Mapa mental
Inheritance
Conteúdo do mapa
Inheritance
Inheritance is what makes code extensible in any OOP language.
- Parent - Child
- The is-a Relationship : Animal (birds, dogs, fish)
- Subclass extends the functionality and behavior of the superclass.
- The is-a Relationship : Animal (birds, dogs, fish)
- Parent - Child
Accessibility
- subclass can access its superclass's public and protected methods, fields, and defaultmethod but not the superclass's private methods.
Method Overriding
- Changing the behavior of a method in the parent class
- Can override the superclass's public and protected methods.
- Changing the behavior of a method in the parent class
Type Casting
- Can case an instance of a subclass to its parent class., Upcasting
Informações
- Descrição
- Mapa Mental sobre Inheritance, criado por Sungeun Yoon em 21-11-2019.
- Criado por
- Sungeun Yoon
- Visualizações
- 0
- Avaliação