Possible Duplicate:
Why to use Interfaces ? Multiple Inheritance vs Interfaces ? Benefits of Interfaces?
In which programming situations multiple inheritance has an advantage over interfaces?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).