(12
Answer (Choose 1 answer)
B. Compilation Error
C. 10
D. Exception
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