interface A{public abstract void show();
}interface B{public abstract int show();
}public class Test implements A, B{public void show(){System.out.println("A show!");}/*只寫 void show()出現的問題:Test不是抽象的, 并且未覆蓋B中的抽象方法show();*/public int show(){System.out.println("B show");}/*當int show 方法寫了出現的問題:錯誤: 已在類 Test中定義了方法 show()。 也就是這兩個show()方法在Test中是歧義的!*/public static void main(String[] args){}
}