Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design a console program that will print details of DVDs available to buy. Make use of an abstract class DVD with variables that will store

image text in transcribed
image text in transcribed
Design a console program that will print details of DVDs available to buy. Make use of an abstract class DVD with variables that will store the title, yearReleased, running time and price of a DVD Create a constructor that accepts the title, yearReleased and running time through parameters and assign these to the class variables. Create an abstract set method for the price of a DVD; also create get methods for the variables Create a subclass InstructionalDVD that extends the DVD class and implements an iPrintable interface. The interface that must be added is shown below public interface iPrintable String ShowDetails(): The InstructionalDVD subclass has a private variable named category for which a get method must be written. The constructor of the InstructionalDVD class must accept the title, yearReleased, running time and category through parameters. Write the code for the setPrice) and ShowDetails() methods Write a useDVD class and instantiate 2 objects of the InstructionalDVD class. Sample output is shown below and you may use the same values to test your application. Output-UseDVD [run DVD Dezail Tear Released: 2012 Prie: 272 Save your files as DVD java, InstructionalDVD.java, useDVD java and iPrintable. java. The criteria in the marking scheme are assessed using the following scale

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions