Multiple inheritance was always one of the least useful features of the C++ language, but Java's lack of it was the most common excuse for C++ developers to dismiss Java outright.  Code always needed an extremely good reason to use multiple inheritance, and most of the time it was misused.  It's a little surprising anyone would miss it for real world development.

Tip: Multiple Inheritance, if it must be used at all, is partially available in Java by having a class that implements multiple interfaces.  Move common methods into a helper class if you need to reuse them.  

You just can't re-use methods in more than one base class at the same time; a minor inconvenience.

blog comments powered by Disqus