(Choose 1 answer)
Find the output of the below program?
class Shape {
protected int a;
protected Shape() { a = 10;}
}
public class Main extends Shape {
public static void main(String[] args) { Main obj = new Main();System.out.println(obj.a);}
}
A. 0
B. 10
C. Compilation Error
D. Exception
Exit 38