Answers for "Java Multiple Interfaces"

1

Java Multiple Interfaces

/Extending Multiple Interfaces
A 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.

The extends keyword is used once, and the parent interfaces are declared in a comma-separated list.

Example
public interface Hockey extends Sports, Event
Posted by: Guest on August-31-2021

Code answers related to "Java Multiple Interfaces"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language