Mindmap
Inheritace

Inhalt der Mindmap
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.
Bilder und Dateien der Mindmap
Informationen
- Beschreibung
- Mindmap am Inheritace, erstellt von Ramses Chávez am 12/09/2017.
- Erstellt von
- Ramses Chávez
- Aufrufe
- 0
- Bewertung