Computer Science, asked by AshmitaSengupta, 3 months ago

what is inheritance ? give some examples.


please answer this question​

Answers

Answered by XxllTeddyllBearllxX
3

\huge\color{navy}{\mid{\fbox{\tt{αηsωεя}}\mid}}

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 somarina605
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