Home > DeveloperSection > Interviews > What is meant by Inheritance?

Posted on    October-25-2010 12:00 AM

 1 Answer(s)
  1407  View(s)
Rate this:

Pushpendra Singh

Total Post:241

Posted on    October-26-2010 12:00 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick