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;
}
}
Question 4Select one or more:
The three-argument constructor in ClassB should use this instead of super.
There is no two-argument constructor in ClassA.
There is no two-argument constructor in ClassB.
There is no zero-argument constructor in ClassA.
There is no one-argument constructor in ClassA.
There is no zero-argument constructor in ClassB.

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!