|
[Thought question:] Can you use one of your own classes (not a predefined class like Applet) as a parent class? A good answer might be:Yes. Programming in Java consists mostly of creating class hierarchies and instantiating objects from them. | |
Tape Store ExampleHere is a program that uses a class VideoTape to represent tapes available at a video tape rental store. Inheritance is not used in this program (so far).
You can run this program using the "copy-paste-and-run" method. | |
QUESTION 7:What will this program print? Click Here after you have answered the question |