WHAT IS IMPLEMENTATION AND INTERFACE INHERITANCE?

Varun Agrawal

Total Post:159

Points:795
Posted by  Varun Agrawal
OOPS 
 2324  View(s)
Ratings:
Rate this:
  1. Varun Agrawal

    Post:159

    Points:795
    What is implementation and interface inheritance?

    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.

Answer

NEWSLETTER

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