Java / Interface
Why interface is allowed to extend multiple interface whereas class can inherit only one class?
An interface adds contracts, not instance fields or constructors, so multiple superinterfaces do not create the diamond field problem a class hierarchy would.
Java doesn't allow multiple inheritance, so a class can extend only one Class. But an interface is a pure abstraction model and doesn't have inheritance hierarchy like classes.
More Related questions...