Answer (Choose 1 answer)
}
El 20
D. Output of "Over.amethod"
B. Runtime error complaining that Base amethod is private
C. Output of "Base.amethod"
A. Compile time error complaining that Base.amethod is private
public void amethod(int iOver){
}
System.out.println("Over.amethod");
o.amethod(iBase);
}
Over o = new Over();int iBase=0;
class Base
What will happen when you attempt to compile and run the following code
private void amethod(int iBase){
System.out.println("Base.amethod");
}
}
class Over extends Base{
public static void main(String argv[]){