Solved

You Are Creating a Class Inheritance Hierarchy About Motor Vehicles

Question 1

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents