Question: The language is C++ Here is the starter code: #ifndef VEHICLE_H #define VEHICLE_H /* @file vehicle.cpp @author @date @description Implements 5 classes for vehicle information
The language is C++
Here is the starter code: Objective: The objective of this homework is to create a set of subclasses and a base class. Task 1: Downlod the following files and view the demo-code from class I. Dounloaod the starter code here: Type make to compile the vehic Type make test to run the vehicle test.cpp ile x.cpp file. Task 2: Create a base class and sub-classes inside vehicle.h Create a vehicle.h file Your task is to create 4 classes, Bike, Car, Truck, Airplane. It is your job to choose appropriate types for all variables. Each class below should have it's own constructor which specifies all parameters You MUST create a base class (Vohiclo is a good name) to make your life Here are the specifications for the classes: 1. Bike elass: a. getColor, setColor - stored as a string b. getPrice - Returns a float. A new bike is $1000, and it depreciates 100 per year, down to 0, c. 1 passenger only d. 2 wheels e. getYear, setYear- stored as an int Year built Use the current year if the F10 F11 5 6 8 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
