Reputation: 31
In my code I have an interface Component to define types. I want to extend that interface with a class InputComponent that has to implement the framework of an API's InputListener.
I'm really at a loss and don't know what to do. To clarify:
public class InputListener implements EventListener {} // this is the API's implementation (details hidden)
public interface Component {}
public interface InputComponent extends Component implements XYZ {} // this should somehow work with the InputListener class
Could somebody give me some resources (links, information, anything at all) on how to do this?
Upvotes: 0
Views: 1461
Reputation: 2092
Interfaces can only extend other interfaces.
Interfaces cannot extend classes.
Interfaces do not implement other interfaces.
Upvotes: 1