Computer Science, asked by govindasuthara75, 4 months ago

What is inheritance?​

Answers

Answered by gurpreet92148
2

Explanation:

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

Answered by suman6428
1

Inheritance is the method by which the features of a existing class can be used with new class. It enhances the concept of re-useability of code as the code once written can be reused and other features can also be added.

Similar questions