1.

What Is Meant By Inheritance?

Answer»

Inheritance is a relationship among classes, wherein one class SHARES the STRUCTURE or behavior defined in another class. This is CALLED Single Inheritance. If a class shares the structure or behavior from MULTIPLE classes, then it is called Multiple Inheritance. Inheritance defines “is-a” hierarchy among classes in which one subclass inherits from one or more generalized superclasses.

Inheritance is a relationship among classes, wherein one class shares the structure or behavior defined in another class. This is called Single Inheritance. If a class shares the structure or behavior from multiple classes, then it is called Multiple Inheritance. Inheritance defines “is-a” hierarchy among classes in which one subclass inherits from one or more generalized superclasses.



Discussion

No Comment Found