Question: What will be the output of the code given below? class A { public int var1; public int var2; public A(int value) { }

What will be the output of the code given below? class A { public int var1; public int var2; public A(int value) { } this.var1 = value; public int method1() { } } return this.var2; class B extends A { public B() { } super(10); public int method1 (int value1) { } return this.var1; class C extends B ( public c(int valuel, int value2) { super(); this.var2= value2; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
