What is the use of super constructor in Java?

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  Hangi emtiaya yatırım yapılır?

Leave a Reply

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