Mapa mental
Parent Class
Conteúdo do mapa
Parent Class
Child Class
- Contains the same attributes and methods as the Parent class
- Methods can be overriden if they are public or protected and belong in the Parent class
- Cannot affect private methods
- Object of type Child class is also an object of Parent class
- When placed first, Child class uses Parent class's constructor
- When using the word super, it calls the Parent class's hidden members and overriden methods
- Super is also used when getting the Parent class's other constructors, this doesn't have to be placed first.
Object of Parent Class is not always an object of the Child class
Informações
- Descrição
- Mapa Mental sobre Parent Class, criado por Lacey Foster em 07-08-2019.
- Criado por
- Lacey Foster
- Visualizações
- 0
- Avaliação