WHAT IS MEANT BY INHERITANCE?

Pushpendra Singh

Total Post:241

Points:1205
Posted by  Pushpendra Singh
OOPS 
 1685  View(s)
Ratings:
Rate this:
  1. Pushpendra Singh

    Post:241

    Points:1205
    What is meant by Inheritance?

    Inheritance is a relationship among classes, wherein one class shares the structure or behaviour defined in another class. This is called Single Inheritance. If a class shares the structure or behaviour 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 generalised superclasses.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!