(you should probably use examples that compile by the way :D )
Okay, so specifically you are using the concept called Polymorphism. "A superclass reference variable can reference objects of a...
Type: Posts; User: JonLane
(you should probably use examples that compile by the way :D )
Okay, so specifically you are using the concept called Polymorphism. "A superclass reference variable can reference objects of a...
The Object you are making is an Animal Object. By having Cat extend Animal you can store a Cat inside an Animal object if you choose.
When you made a new Cat object it should over ride all same...