Inheritance or Encapsulation

The Problem

    1. Java uses the single inheritance model for classes, but uses the multiple inheritance model for interfaces.
    2. C++ has a dreadful multiple inheritance scheme that was obviously designed to make implementation easier, and ignores all intuition.

The Solution

    1. Multiple inheritance allows the programmer to avoid facing the question between inheritance or encapsulation.