class A {public int getNumber(int a){return a+1;}} class B extends A {public int get
A.compilation succeeds and 3 is printed
B.compilation succeeds and 2 is printed
C.compilation succeeds and 1 is printed
D.An error at this program cause compilation to fail