Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need help in this program. please answer in c++. thank you. Create a base class called Vehicle that has the manufacturer's name (type string),

image text in transcribed

image text in transcribed

i need help in this program. please answer in c++. thank you.

Create a base class called Vehicle that has the manufacturer's name (type string), number of cylinders in the engine (type int), and owner (type Person given in the code that follows). Then create a class called Truck that is derived from Vehicle and has additional properties, the load capacity in tons (type double since it may contain a fractional part) and towing capacity in pounds (type int) Be sure your classes have a easonable complement of constructors and accessor methods, an overloaded assignment operator, a copy constructor, and an overloaded insertion operator can read a full name separated with a space, e.g., "Harry Potter class Person public: Person(); Person(string theName) Person const Person& theObject); string getName const; Person& operator (const Person& rtSide); friend istreams operator (istream& inStream, Person& person0bject); friend ostream& operator operator can read a full name separated with a space, e.g., "Harry Potter class Person public: Person(); Person(string theName) Person const Person& theObject); string getName const; Person& operator (const Person& rtSide); friend istreams operator (istream& inStream, Person& person0bject); friend ostream& operator

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions