0
What is different between multiple inheritance vs interface?
2 ответов
+ 2
Java doesn't support multiple inheritence so when you implement an interface in a class , you are not actually inheriting anything(data members,etc.) but just some method declarations and you have to write the definitions by yourself.
+ 1
A class can inherit from just one superclass, but can implement multiple interfaces in Java. So, you basically use interfaces to implement multiple inheritance.