superinterface in java
java
Solution
Here's an example:
public interface A {
void doSomething();
}
public interface B extends A {
void doSomethingElse();
}
In this example, `A` is a superinterface of `B`. It's like being a superclass. Any class implementing `B` now also implements `A` automatically, and must provide an implementation of both `doSomething()` and `doSomethingElse()`.
Problem
What is super-interface is java? what is the purpose of super-interface?