Can Super be used in a constructor?

both this() and super() can not be used together in constructor . this() is used to call default constructor of same class.it should be first statement inside constructor. super() is used to call default constructor of base class.it should be first statement inside constructor.

Sizin İçin Seçtik  Can we call superclass constructor from subclass constructor in Java?

Leave a Reply

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

Can Super be used in a constructor?

both this() and super() can not be used together in constructor . this() is used to call default constructor of same class.it should be first statement inside constructor. super() is used to call default constructor of base class.it should be first statement inside constructor.

Sizin İçin Seçtik  Is frequency range and bandwidth same?

Leave a Reply

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

Can Super be used in a constructor?

both this() and super() can not be used together in constructor . this() is used to call default constructor of same class.it should be first statement inside constructor. super() is used to call default constructor of base class.it should be first statement inside constructor.

Sizin İçin Seçtik  Why super is called first in constructor?

Leave a Reply

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