I have a class which is implementing an interface, and one of the methods is called onClick. Is there a way to implement the onClick that the interface wants but name it something else? Something like (and I'm making this up):
public void AnyMethodNameIWant() implements Interface1.onClick
Three reasons I'm asking are:
- It would be nice to look at an method signature and know that it's coming from an interface
- To avoid 'generic' names like onClick that an interface may require me to have
- To distinguish between the same method names in many interfaces
Apologies if this is a fundamentally 'bad' question as I am new to Java.