class A {
public void printFirst(int... va) throws IOException{
System.out.print("A");
}
public static void main(String args[]) {
try {
new B().printFirst(2);
} catch (Exception ex) {
}
}
}
class B extends A {
//@Override
public void printFirst(float... va) throws IOException{
System.out.print("B");
}
}
为什么,它显示了对 call ambiguous 的引用?