Mapa mental
Inheritace

Conteúdo do mapa
Inheritace
The idea of inheritance is to allow the creation of new classes based on existing classes.
- When we inherit from an existing class, we reuse (or we inherit) methods and fields, and we add new fields and methods to meet the new situation.
- Every time we find the relationship "is-an" between two classes, we are faced with the presence of inheritance.
- When we inherit from an existing class, we reuse (or we inherit) methods and fields, and we add new fields and methods to meet the new situation.
Single inheritance: where subclasses inherit the features of one superclass. A class acquires the properties of another class.
- Multiple inheritance: where one class can have more than one superclass and inherit features from all parent classes.
- Multilevel inheritance: where a subclass is inherited from another subclass.
- Hierarchical inheritance: where one class serves as a superclass (base class) for more than one sub class.
- Hybrid inheritance a mix of two or more of the above types of inheritance
- Hierarchical inheritance: where one class serves as a superclass (base class) for more than one sub class.
- Multilevel inheritance: where a subclass is inherited from another subclass.
- Multiple inheritance: where one class can have more than one superclass and inherit features from all parent classes.
Imagens e arquivos do mapa
Informações
- Descrição
- Mapa Mental sobre Inheritace, criado por Ramses Chávez em 12-09-2017.
- Criado por
- Ramses Chávez
- Visualizações
- 0
- Avaliação