---
title: "What is implementation and interface inheritance?"  
description: "What is implementation and interface inheritance?"  
author: "Varun Agrawal"  
published: 2011-03-29  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/733/what-is-implementation-and-interface-inheritance  
category: "oops"  
tags: ["oops"]  
reading_time: 1 minute  

---

# 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.

## Answers

### Answer by Varun Agrawal

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.


---

Original Source: https://www.mindstick.com/interview/733/what-is-implementation-and-interface-inheritance

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
