Mapa mental
Inheritance
Conteúdo do mapa
Inheritance
Extending a class or subclassing or inheriting a class
- Inheritance allows you to add methods that don't exist in the original class while still retaining the original features.
- Java does not inherit from multiple classes. Can't extend a class from two different classes.
- Interface gets around this issue and supports the functionality of multiple inheritance.
- Can continue to subclass as needed. The final keyword prevents further subclassing.
- Multilevel inheritance has limits to access to distant classes. Grandparent ---> Parent ----> Child Child has no access to grandparent.
- Java does not inherit from multiple classes. Can't extend a class from two different classes.
- Inheritance allows you to add methods that don't exist in the original class while still retaining the original features.
Informações
- Descrição
- Mapa Mental sobre Inheritance, criado por John Poulos em 03-08-2019.
- Criado por
- John Poulos
- Visualizações
- 0
- Avaliação