|
What instance variables are part of the class MusicVideo? A good answer might be:MusicVideo inherits title, length, and avail from its superclass and adds artist and category. | |
Writing the ConstructorNotice that MusicVideo inherits only from its superclass VideoTape. It does not inherit anything from its sibling class Movie. Here is the definition so far:
A constructor is needed for MusicVideo. The constructor will use four parameters to initialize title, length, artist and category. Initialize avail to true without using a parameter. | |
QUESTION 16:Write a constructor for MusicVideo. Use the super reference to use the constructor in VideoTape. Click Here after you have answered the question |