We know in Java we can't achieve the multiple inheritance but can be achieved by the interface.
Here I am stuck. This is the situation,
interface A {
void a();
}
interface B {
void a();
}
class AB implements A, B {
@Override
public void a() {
// which interface's method be implemented?
// Log.d("TAG", "Name of Interface: " + /*get the name of interface*/);
}
}
Please suggest me something.