Kizspy | Question: 30
(Choose 1 answer)
What is the output of the following Java program?
abstract class A {
private int a, b;public void call(int a, int b) {
this.a = a;
this.b = b;
System.out.println(a + b);
}
} public class Main {
public static void main(String args[]) { Am = new A() {};
m.call(12, 25);
}
}
A. 37
B. 12
C. 25
D. Compiler error at statement A m = new A() {};