Mindmap
Inheritance
Inhalt der Mindmap
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.
Informationen
- Beschreibung
- Mindmap am Inheritance, erstellt von John Poulos am 03/08/2019.
- Erstellt von
- John Poulos
- Aufrufe
- 0
- Bewertung