What is inheritance in OOP with example?

Inheritance is a mechanism in which one class acquires the property of another class . For example, a child inherits the traits of his/her parents. With inheritance, we can reuse the fields and methods of the existing class. Hence, inheritance facilitates Reusability and is an important concept of OOPs.12 Mar 2022

Sizin İçin Seçtik  Which type of inheritance are used in Java?

Leave a Reply

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

What is inheritance in OOP with example?

Inheritance is a mechanism in which one class acquires the property of another class . For example, a child inherits the traits of his/her parents. With inheritance, we can reuse the fields and methods of the existing class. Hence, inheritance facilitates Reusability and is an important concept of OOPs.12 Mar 2022

Sizin İçin Seçtik  Is MongoDB good for backend?

Leave a Reply

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