Science, asked by akshaypunia74, 3 months ago

What is Inheritance help my mobile number eight two nine five two six eight two zero​

Answers

Answered by bhumikabehera16
93

Answer:

In object-oriented programming, inheritance is the mechanism of basing an object or class upon another object or class, retaining similar implementation. Also defined as deriving new classes from existing ones such as super class or base class and then forming them into a hierarchy of classes

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.

Explanation:

HOPE THIS WILL HELP U MATE...

MARK AS BRAINLIEST

Attachments:
Similar questions