Question: Create a base class called Vehicle that has the following attributes: manufacturer's name (string) - number of cylinders in the engine (int) - owner (Person

 Create a base class called Vehicle that has the following attributes:

Create a base class called Vehicle that has the following attributes: manufacturer's name (string) - number of cylinders in the engine (int) - owner (Person object) - accessor and mutator functions multiple constructors including a copy constructor - an overloaded assignment operator Next, create a class called Truck that is derived from Vehicle and has these additional attributes: - load capacity int tons (double) - towing capcaity in pounds (int) - accessor and mutator functions multiple constructors including a copy constructor an overloaded assignment operator Also implement the Person class using the following definition: class Person public: Person) Person(string theName); Person(const Person& theObject); string getName) const; Person& operator (const Person& rhs); friend istream& operator>>(istream& inStream, Person& obj); friend ostream& operator>(istream& inStream, Person& obj); friend ostream& operator

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!