+ 13
Is C++ the only major language that supports multiple inheritance?
Java has no multiple inheritance but has interfaces. Other newer languages also seem to support variations of interfaces but not multiple inheritance. Does anyone know of another major language that supports multiple inheritance? Did C++ get it wrong in supporting this concept. If so, why?
3 Réponses
+ 13
C++ allows you to shoot yourself in the foot. A byproduct of power is the ability to harm oneself, should a user be careless or unskillful.
That said, multiple inheritance is not specific to C++.
https://en.m.wikipedia.org/wiki/Multiple_inheritance
0
yes