Possible Duplicate:
Why to use Interfaces ? Multiple Inheritance vs Interfaces ? Benefits of Interfaces?
In which programming situations multiple inheritance has an advantage over interfaces?
Possible Duplicate:
Why to use Interfaces ? Multiple Inheritance vs Interfaces ? Benefits of Interfaces?
In which programming situations multiple inheritance has an advantage over interfaces?
whenever you need common behaviour from two distinct classes. Interface just carry "method signatures", whereas classes carry actual behaviour. Multiple inheritance greatly helps to reduce boilerplate code.
I am no longer a C++ programmer (30kg ago I was). I went from C++ to Java to Scala... where traits were introduced. They shine a new light on multiple inheritance (even to people who though that it was an invention from the devil).
Very short, to the bone difference:
Interfaces: implement multiple interfaces to support different 'contracts'.
Multiple inheritance: inherit from ready made classes to have ready-made behavior of that classes.
BTW, that two aren't comparable in a way you ask...
The advantages are not entirely clear to me. What is the exact problem with multiple inheritance?
The benefits
We have presented examples of multiple inheritance that show that it can have advantages when you can separate object characteristics into nonoverlapping sets. Multiple inheritance then lets you create complex classes using only the characteristics that you need, without a proliferation of base classes.
Are explained in http://opendylan.org/books/dpg/db_293.html