Can you use super in a constructor 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  Is Vertcoin easy to mine?

Leave a Reply

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