Question: I need a help. COMP.2010 HW 08 SP18 - Dr. Lin Due date: 04-04-2018 (W), 11am Close date: 04-18-2018(W), 11am Submission: a C++ file (hw8.cpp)


I need a help.
COMP.2010 HW 08 SP18 - Dr. Lin Due date: 04-04-2018 (W), 11am Close date: 04-18-2018(W), 11am Submission: a C++ file (hw8.cpp) on Blackboard Points: 40 Description 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 reasonable 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& the0bject); string getName const; Person& operator (const Person& rtSide); friend istream& 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& the0bject); string getName const; Person& operator (const Person& rtSide); friend istream& operator >>(istream& inStream, Person& person0bject); friend ostream& operator
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
