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 edX and how does it work?

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 happens when you don't use super () constructor?

Leave a Reply

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