Home > DeveloperSection > Interviews > What is implementation and interface inheritance?

Posted on    March-29-2011 9:15 AM

 OOPS OOPS 
Ratings:
 1 Answer(s)
  1965  View(s)
Rate this:

Varun Agrawal
Varun Agrawal

Total Post:159

Points:795
Posted on    March-29-2011 12:00 AM

When a class (type) is derived from another class(type) such that it inherits all the members of the base type it is Implementation Inheritance.
When a type (class or a struct) inherits only the signatures of the functions from another type it is Interface Inheritance.
In general Classes can be derived from another class, hence support Implementation inheritance. At the same time Classes can also be derived from one or more interfaces. Hence they support Interface inheritance.

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

Follow MindStick