ed 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 { Stri
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
Trending now
This is a popular solution!
Step by step
Solved in 2 steps