Mind map
Inheritance: Superclass
Map content
Inheritance: Superclass
Superclass: Animal
- class: Fish
- class: Dog
- class: Bird
- NOTE: Subclass can access the Superclass public, protected methods and fields but not superclass private methods
Method Overriding
- When you extend a class, you can change the behavior of the method in the parent class
- This happens when you write in a subclass a method that has the same signature as a method in the parent class
- When you extend a class, you can change the behavior of the method in the parent class
Calling the Superclass Constructors
- By invoking the Constructor of the subclass,it calls the no argument constructor of the parent class
Information
- Description
- Mind Map on Inheritance: Superclass, created by Amar Shah on 21/11/2019.
- Created by
- Amar Shah
- Views
- 0
- Rating