What is super constructor in Java?

In Java, the superclass constructor can be called from the first line of a subclass constructor by using the special keyword super() and passing appropriate parameters, for example super(); or super(theName); as in the code below.

Sizin İçin Seçtik  How do you call a super class constructor from a constructor?

Leave a Reply

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

What is super constructor in Java?

In Java, the superclass constructor can be called from the first line of a subclass constructor by using the special keyword super() and passing appropriate parameters, for example super(); or super(theName); as in the code below.

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

Leave a Reply

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