Geography, asked by saranya2020, 9 months ago

Define inheritance with an example.​

Answers

Answered by Anonymous
6

Hello.....

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

Answered by chocogirlz
1

hi dear

inheritance

  • inheritance is a process in which an organisms accuriqred the traits from the parents .

  • example: eyebrows, skin tone of their parents etc.

#choco

mark me pls

Similar questions