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  What is superclass and subclass in Java with example?

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  Ketlenme ne demek tıp?

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  Does subclass need constructor?

Leave a Reply

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