• Define a Shape class which has property such as color, numberOfDors etc This class should have parameterized constructor. • Define a Vehicle class which has property such as model, price, yearOfPro- duction. This class also have parameterized constructor and related methods • Define a Car class it should extend both of Vehicle and Shape classes at the same time, also have properties such as Horsepower,maxSpeed, fuelType etc. This class also should have parameterized constructors and related methods

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section12.2: Providing Class Conversion Capabilities
Problem 6E
icon
Related questions
Question
100%
Part I
Implementation
In this part you are asked to Implement C++ classes with their header files.
• Define a Shape class which has property such as color, numberOfDors etc.
This class should have parameterized constructor.
• Define a Vehicle class which has property such as model, price, yearOfPro-
duction. This class also have parameterized constructor and related methods
• Define a Car class it should extend both of Vehicle and Shape classes at the
same time, also have properties such as Horsepower.maxSpeed, fuelType etc.
This class also should have parameterized constructors and related methods
All class should have separated C++ and header files. Total 6 files. Note all
class properties should be private and other are public. Consider the OOP concept.
Part II
Test
Test the "Car" class in a C++ file and print out all information about a car object.
Transcribed Image Text:Part I Implementation In this part you are asked to Implement C++ classes with their header files. • Define a Shape class which has property such as color, numberOfDors etc. This class should have parameterized constructor. • Define a Vehicle class which has property such as model, price, yearOfPro- duction. This class also have parameterized constructor and related methods • Define a Car class it should extend both of Vehicle and Shape classes at the same time, also have properties such as Horsepower.maxSpeed, fuelType etc. This class also should have parameterized constructors and related methods All class should have separated C++ and header files. Total 6 files. Note all class properties should be private and other are public. Consider the OOP concept. Part II Test Test the "Car" class in a C++ file and print out all information about a car object.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr