What is the role of super statement in constructor?

The super keyword in Java is a reference variable that is used to refer parent class objects. The super() in Java is a reference variable that is used to refer parent class constructors . super can be used to call parent class’ variables and methods. super() can be used to call parent class’ constructors only.

Sizin İçin Seçtik  What are objects give an example?

Leave a Reply

Your email address will not be published. Required fields are marked *

What is the role of super statement in constructor?

The super keyword in Java is a reference variable that is used to refer parent class objects. The super() in Java is a reference variable that is used to refer parent class constructors . super can be used to call parent class’ variables and methods. super() can be used to call parent class’ constructors only.

Sizin İçin Seçtik  What is subclass constructor?

Leave a Reply

Your email address will not be published. Required fields are marked *