Question: Media Interfaces Lab 1 . Create an interface named Movie which contains a single abstract method: printDirector ( ) which takes no arguments and has

Media Interfaces Lab
1. Create an interface named Movie which contains a single abstract method: printDirector() which
takes no arguments and has a void return.
2. Create an interface named Multimedia which contains a single abstract method: printDuration()
which takes no arguments and has a void return.
3. Create a class named Media that inherits from Movie and Multimedia
a. Instance variables:
i. duration: int
ii. director: String
b. Methods:
i. Setters for two instance variables
ii. Overrides the two abstract methods from the inherited classes
4. Create a driver class named PrintMedia
a. Instantiate a Media object
b. Set values for director and duration
c. Call the two overridden methods from the Media class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!