consider the following code:
class Parent
{
public void print(int i)
{
}
}
public class Child extends Parent
{
public static void main(
String argv[])
{
}
// insert code here
}
Choices:
A. public void print(int i, byte b) throws Exception {}
B. public void print(int i, long i) throws Exception {}
C. public void print(long i) {}
D. public void print(int i) throws Exception {}
E. public int print(int i)
Correct choices:
A, B, and C
can anybody justify why the choices A,B,C are correct