Question
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.
Class Diagram
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started