What are the main uses of the super keyword in Java?
There are the following uses of super keyword.
- super can be used to refer to the immediate parent class instance variable.
- super can be used to invoke the immediate parent class method.
- super() can be used to invoke immediate parent class constructor.
Recent Posts