why multiple inheritance in java is not possible code example
Example 1: why java don't support multiple inheritance
C++ and few other languages supports multiple
inheritance while java doesn’t support it.
Java doesn’t allow multiple inheritance
to avoid the ambiguity caused by it.
Example 2: how to achieve multiple inheritance in java
Multiple inheritance is achieved and
implemented using interfaces.