用相同的方法在类中实现两个接口。哪个接口方法被重写?
interface A{
int f();}interface B{
int f();}class Test implements A, B{
public static void main(String... args) throws Exception{
}
@Override
public int f() { // from which interface A or B
return 0;
}}慕姐4208626
相关分类