Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

This week we will work with classes by creating a virtual garage. Your program will use the inheritance diagram below in order to create a

This week we will work with classes by creating a virtual garage. Your program will use the inheritance diagram below in order to create a parent class and two child classes.

Your program will prompt the user to create at least one object of each type (Car and Pickup). Using a menu system and capturing user input your program will allow the user the choice of adding a car or pickup truck and define the vehicle's attributes. The program will use user input to define the vehicle's attributes.

The following is a detailed list of what your virtual garage must include.

A Vehicle class that contains all the methods and attributes outlined in the class diagram below.

A Car class that is a child class of the Vehicle class with the methods and attributes detailed in the class diagram below.

A Pickup class is a child class of the Vehicle class with the methods and attributes detailed in the class diagram below.

image text in transcribed

\begin{tabular}{|c|} \hline Vehicle \\ Attributes \\ String VehicleMake \\ String VehicleModel \\ Methods \\ SetVehicleMake \\ SetVehicleModel \\ GetVehicleMake \\ GetVehicleModel \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions