Because interfaces specify only what the class is doing, not how it is doing it.
The problem with multiple inheritance is that two classes may define different ways of doing the same thing, and the subclass can’t choose which one to pick.
More Related Contents:
- What is an interface in Java?
- Why to use Interfaces, Multiple Inheritance vs Interfaces, Benefits of Interfaces?
- How should I have explained the difference between an Interface and an Abstract class?
- When do I have to use interfaces instead of abstract classes? [duplicate]
- What’s wrong with overridable method calls in constructors?
- Difference between Inheritance and Composition
- Extends JFrame vs. creating it inside the program
- Do subclasses inherit private fields?
- Abstract class in Java
- Is there more to an interface than having the correct methods
- Implements vs extends: When to use? What’s the difference?
- Explicitly calling a default method in Java
- Why java classes do not inherit annotations from implemented interfaces?
- Java : If A extends B and B extends Object, is that multiple inheritance
- Do interfaces inherit from Object class in java
- What is the main difference between Inheritance and Polymorphism?
- Should we @Override an interface’s method implementation?
- Why do we assign a parent reference to the child object in Java?
- Is polymorphism possible without inheritance?
- Why are class static methods inherited but not interface static methods?
- Do/can abstract classes replace interfaces? [duplicate]
- How can a derived class invoke private method of base class?
- Why use inheritance at all? [closed]
- Should you always Code To Interfaces In Java [closed]
- Why would both a parent and child class implement the same interface?
- Access subclass fields from a base class in Java
- interface as a method parameter in Java
- Avoiding parallel inheritance hierarchies
- How much interfaces a class file can implement [closed]
- The purpose of interfaces continued