The question goes like this
class Programmer {
Programmer debug() { return this; }
}
class
SCJP extends Programmer {
// insert code here
}
Which, inserted at line 5 will compile?
A. Programmer debug() { return this;}
B. SCJP debug() { return this;}
C. Object debug() { return this;}
D. int debug() { return 1;}
E. int debug(int x) { return 1;}
F. Object debug(int x) { return this;}
I know A & B are correct. Can somebody explain the other 4 options?