Solved

You Are Creating a Class Inheritance Hierarchy About Motor Vehicles

Question 28

Multiple Choice

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?


A) Vehicle should be the default class,
while Auto and Motorcycle should be the subclasses.
B) Vehicle should be the superclass,
while Auto and Motorcycle should be the subclasses.
C) Vehicle should be the subclass, while Auto and Motorcycle should be the superclasses.
D) Vehicle should be the subclass, while Auto and Motorcycle should be the default classes.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions