Next privilege 300 Rep.
Create new tags
1 6
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 15 votes cast
comment What is different between the internal design of Java and C++ that lets C++ have multiple inheritance?
Actually, C++ gives you the choice between diamond and non-diamond inheritance, so this is not really the problem. Note that most languages which provide MI (eg. python, lisp) are very dynamic in nature, and allow you for instance to customize the way methods overrides are resolved. In C++, multiple inheritance is actually very crippled if you compare it to eg. lisp's CLOS with its multiple dispatch mechanism, and this reduces its usefulness to interface inheritance, à la Java.