Mind map
Class
Map content
Class
SUBCLASS
- Inherits all public methods and fields of its superclass
- You can call parent's constructor from a subclass' constructor by using the super keyword - but it has to be the first statement in the constructor
- Super keyword can also be used to call a hidden member or an overridden method in a superclass
- You can prevent others from extending your class by making it final using the keyword final
- You can only cast an instance of a subclass to its parent class
- You can call parent's constructor from a subclass' constructor by using the super keyword - but it has to be the first statement in the constructor
- Inherits all public methods and fields of its superclass
Information
- Description
- Mind Map on Class, created by Armina Šito on 22/11/2019.
- Created by
- Armina Šito
- Views
- 0
- Rating