Question:What is the output of the given program?
public class Test130 { public static void main(String[] args) { A a = new A2(); B b = new B2(); System.out.println(a.a + """" + b.b()); } } class A { public int a = 1; } class A2 extends A { public int a = 2; } class B { public int b() { return 1; } } class B2 extends B { public int b() { return 2; } }
A 11
B 12
C 21
D 22
+ AnswerB
+ Report