How is reusability Supported by
Inheritance explain with example:
Answers
Answered by
10
Answer:
here's ur answer dude
Explanation:
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.
hope it helps
Similar questions