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 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  Bir arabayı nasıl takip edebilirim?

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  How implement inheritance in Java explain with code?

Leave a Reply

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