what is inheritance ? give some examples.
please answer this question
Answers
Answered by
3
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.
Answered by
1
Answer:
In object-oriented programming, inheritance refers to the ability of an object to take on one or more characteristics from other classes of objects.
Similar questions