What is difference between Super and this constructor?

Difference Between this() and super() Constructor The this() constructor refers to the current class object. The super() constructor refers immediate parent class object. It is used for invoking the current class method.

Sizin İçin Seçtik  Is it necessary to call super constructor in Java?

Leave a Reply

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