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  Java Inheritance ne demek?

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  Which is the most super class 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  Bitci kaç kuruş?

Leave a Reply

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