一、实现多个具有相同方法的接口
这种情况还是比较少会遇到的,但事实是存在这样的问题,所以写下解决的方法:
使用内部类:
interface InterA {
void f();
}
interface InterB {
void f();
}
public class C implements InterA {
一、实现多个具有相同方法的接口
这种情况还是比较少会遇到的,但事实是存在这样的问题,所以写下解决的方法:
使用内部类:
interface InterA {
void f();
}
interface InterB {
void f();
}
public class C implements InterA {