java multiple interfaces

Solutions on MaxInterview for java multiple interfaces by the best coders in the world

showing results for - "java multiple interfaces"
Jacopo
15 Nov 2018
1/Extending Multiple Interfaces
2A Java class can only extend one parent class. Multiple inheritance is not allowed. Interfaces are not classes, however, and an interface can extend more than one parent interface.
3
4The extends keyword is used once, and the parent interfaces are declared in a comma-separated list.
5
6Example
7public interface Hockey extends Sports, Event