Mapa mental
Inheritance: Superclass
Conteúdo do mapa
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
Informações
- Descrição
- Mapa Mental sobre Inheritance: Superclass, criado por Amar Shah em 21-11-2019.
- Criado por
- Amar Shah
- Visualizações
- 0
- Avaliação