Answers for "Usage of "super" keyword"

0

Usage of "super" keyword

The super keyword in Java is a reference variable which is used to refer immediate parent class object.

Whenever you create the instance of subclass, an instance of parent class is created implicitly which is referred by super reference variable.

super can be used to refer immediate parent class instance variable.
super can be used to invoke immediate parent class method.
super() can be used to invoke immediate parent class constructor.
Posted by: Guest on August-31-2021

Code answers related to "Usage of "super" keyword"

Browse Popular Code Answers by Language