Mind map
Inheritace

Map content
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.
Images and files in the map
Information
- Description
- Mind Map on Inheritace, created by Ramses Chávez on 12/09/2017.
- Created by
- Ramses Chávez
- Views
- 0
- Rating