Why do we use super function?

The super() function is used to give access to methods and properties of a parent or sibling class . The super() function returns an object that represents the parent class.

Sizin İçin Seçtik  What is constructor chaining in Java?

Leave a Reply

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