class A {
protected int method1(int a, int b) { return 0; }
}
Which two are valid in a class that extends class A? (Choose two)
public int method1(int a, int b) { return 0; }
private int method1(int a, int b) { return 0; }
private int method1(int a, long b) { return 0; }
public short method1(int a, int b) { return 0; }
static protected int method1(int a, int b) { return 0; }
protected int method1(int a, int b) { return 0; }
}
Which two are valid in a class that extends class A? (Choose two)
public int method1(int a, int b) { return 0; }
private int method1(int a, int b) { return 0; }
private int method1(int a, long b) { return 0; }
public short method1(int a, int b) { return 0; }
static protected int method1(int a, int b) { return 0; }