Mindmap
Inheritance: Superclass
Inhalt der Mindmap
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
Informationen
- Beschreibung
- Mindmap am Inheritance: Superclass, erstellt von Amar Shah am 21/11/2019.
- Erstellt von
- Amar Shah
- Aufrufe
- 0
- Bewertung