difference between interface inheritance and implementation inheritance

Viewed 20963

I found those two terms in the book of Meyers, but what is the difference?

3 Answers

Implementation (or class) inheritance is when you separate a common part of implementation in the base class.

Interface inheritance is when you use virtual methods. It is intended to separate interface from implementation and minimize dependencies between program elements.

Related