Question: class ClassBase { int i = 10; ClassBase(int i) { i = this.i; //line a } } class ClassSub extends ClassBase { int i =

 class ClassBase { int i = 10; ClassBase(int i) { i

class ClassBase { int i = 10; ClassBase(int i) { i = this.i; //line a } } class ClassSub extends ClassBase { int i = 20; ClassSub(int i) { i=i; //line b } } public class HelloWorld{ public static void main(String[] args) { ClassSub s2 = new ClassSub (10); classBase s1 = 52; // linec System.out.print(s1 == s2); // line d } } Select one: a. The program does not compile because of Line a b. The program does not compile because of Line b c. The program does not compile because of Line e d. The program does not compile because of Lined e None of the above is correct

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!