Question: The following classes are in the same project and the project does not compile. Why not? public class ClassA { int x; int y; public
The following classes are in the same project and the project does not compile. Why not? public class ClassA { int x; int y; public ClassA(int theX, int theY) { x = theX; y = theY; } } public class ClassB extends ClassA { int z; public ClassB(int x, int y, int z) { super(x,y); this.z = z; } public ClassB(int z) { this.z = z; } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
