Mind map
Inheritance
Map content
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.
Information
- Description
- Mind Map on Inheritance, created by John Poulos on 03/08/2019.
- Created by
- John Poulos
- Views
- 0
- Rating