Look at the following classes:
public class Ground
{
public Ground()
{
System.out.println("You are on the ground.");
}
public Ground(String groundColor)
{
System.out.println("The ground is " +
groundColor);
}
}
public class Sky extends Ground
{
public Sky()
{
System.out.println("You are in the sky.");
}
public Sky(String skyColor)
{
super("green");
System.out.println("The sky is " + skyColor);
}
}
What will the following program display?
public class Checkpoint
{
public static void main(String[] args)
{
Sky object = new Sky("blue");
}
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.