Computer Science, asked by babu14318, 3 months ago

What is Inheritance? Explain in types​

Answers

Answered by charantejkankalapati
0

Answer:

thing that is inherited.

Answered by Anonymous
0

Answer:

Inheritance is a mechanism of acquiring the features and behaviors of a class by another class. The class whose members are inherited is called the base class, and the class that inherits those members is called the derived class. Inheritance implements the IS-A relationship.

For example, mammal IS-A animal, dog IS-A mammal; Hence dog IS-A animal as well.

OOPs support the six different types of inheritance as given below :

Single inheritance

Multi-level inheritance

Multiple inheritance

Multipath inheritance

Hierarchical Inheritance

Hybrid Inheritance

Similar questions