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  Döviz bozdururken vergi var mı?

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  What is base class and child 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  Is Super necessary in constructor?

Leave a Reply

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