How can we implement two different interface which have a method with same signature.
// First Interface
interface InterfaceA{
public int methodOne(String str);
}
// Second Interface
interface InterfaceB{
public int methodOne(String str);
}
// Implementation class
class ImplementationClass implements InterfaceA,InterfaceB {
// How can implements the both interface differently
public int methodOne(String str){
}
}
When I try to implements directly it became single implementation for the both interface's method.
How can I implement them differently ?