Mindmap
Inheritance
Inhalt der Mindmap
Inheritance
- The "is-a" relationship.
- Final classes cannot be extended.
- public ExtendedClass(args) {super(ParentClass);} If the above is not present, the no-constructor method is invoked implicitly.
Shadowing
Override
- Redefine.
Protected/Public
- Only fields that are public or protected can be accessed by an extended class.
Abstract vs. Concrete
- Abstract classes cannot be instantiated.
- Allows for abstract methods, which can be called on the parent but use the subclass variant, if the subclass variant is invoked at runtime.
Extends
Informationen
- Beschreibung
- Mindmap am Inheritance, erstellt von karloski am 18/05/2015.
- Erstellt von
- karloski
- Aufrufe
- 0
- Bewertung