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 happens when you don't use super () constructor?

Leave a Reply

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