Computer Science, asked by jia30, 1 year ago

give an example of inheritance​

Answers

Answered by nikitasoni91
1

Answer:

Inheritance is a mechanism in which one class acquires the property of another class. For example, a child inherits the traits of her parents. With inheritance, we can reuse the fields and methods of the existing class.

Answered by Riyavyas
0

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 .

Similar questions