logo

Crowdly

Looking for test answers and solutions? Browse our comprehensive collection of verified answers for at moodle.lsu.edu.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

You are creating a Motorcycle class which is supposed to inherit from the Vehicle class. Which of the following class declaration statements will accomplish this? 

0%
0%
0%
100%
View this question

To create a subclass, use the ____ keyword.

0%
0%
0%
100%
View this question

Consider the following inheritance hierarchy diagram:

Which of the following statements is correct?

100%
0%
0%
0%
View this question

Consider the following inheritance hierarchy diagram:

Which of the following statements is correct?

0%
100%
0%
0%
View this question

Insert the missing code in the following code fragment. This fragment is intended to call the Vessel class's method.

public class Vessel

{

   . . .

   public void setVesselClass(double vesselLength)

   {

      . . .

   }

}

public class SpeedBoat extends Vessel

{

   . . . 

   public SpeedBoat()

   {

      _______________;

   }

}

0%
0%
0%
100%
View this question

Insert the missing code in the following code fragment. This fragment is intended to call the Vehicle class's method.

public class Vehicle

{

   . . .

   public void setVehicleClass(double numberAxles)

   {

     . . .

   }

}

public class Motorcycle extends Vehicle

{

   . . . 

   public Motorcycle()

   {

      _______________;

   }

}

0%
0%
100%
0%
View this question

Which of the following statements about inheritance is correct?

0%
100%
0%
0%
View this question

You are creating a class inheritance hierarchy about motor vehicles that will contain classes named Vehicle, Auto, and Motorcycle.  Which of the following statements is correct? 

0%
100%
0%
0%
View this question

A class that represents a more specific entity in an inheritance hierarchy is called a/an ____. 

0%
0%
100%
0%
View this question

A class that represents the most general entity in an inheritance hierarchy is called a/an ____.

0%
100%
0%
0%
View this question

Want instant access to all verified answers on moodle.lsu.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!