1) Implementation Inheritance:
2) Interface Inheritance:
- This is commonly used inheritance.
- Whenever a class is derived from another class, it can be called as ―Implementation Inheritance.
- As said above, all of the members of the super class are adopted by sub class.
2) Interface Inheritance:
- This type of inheritance is taken from ―Java.
- Whenever a class is derived from an interface, it can be called as ―Interface Inheritance.
- The interface is similar to the class, but doesn‘t contain the method definitions; it contains the method declarations only. We discuss about the interfaces in-depth later.