Look at the following classes: Public class Ground{Public Ground(){System.out.println(You are on the ground.);}}Public class Sky extends Ground{Public Sky(){System.out.println(You are in the sky.);}} What will the following program display? Public class Checkpoint{Public static void main(String[] args){Sky object = new Sky();}}

Chapter 10, Checkpoint #4

This problem has been solved!


Do you need an answer to a question different from the above? Ask your question!

Look at the following classes: 

Public class Ground
{
 Public Ground()
 {
 System.out.println("You are on the ground.");
 }
}
Public class Sky extends Ground
{
 Public Sky()
 {
 System.out.println("You are in the sky.");
 }
}

What will the following program display? 

Public class Checkpoint
{
 Public static void main(String[] args)
 {
 Sky object = new Sky();
 }
}

Related Book For answer-question

Starting Out With Java From Control Structures Through Data Structures

6th Edition

Authors: Tony Gaddis

ISBN: 9780133957051