Question: Code using c++ Create two classes in a single file named Person and Weight. Both classes should implement constructor delegation and default constructors should assign
Code using c++

Create two classes in a single file named Person and Weight. Both classes should implement constructor delegation and default constructors should assign logical default values for all data members. Class Weight a. data member: 1. pounds b. constructors: 1. default constructor 2. user defined constructor c. standard accessor and mutator functions Class Person a. data members: first, middle and last names (3 separate variables weight (object of type Weight) b. constructors: 1. default constructor 2. user defined constructor to set all parameters including weight c. single accessor function that returns the full name (first, middle, last) d. accessor function that returns the weight of this person as an object e. single mutator function to set all name variables (first, middle, last) f. mutator function that updates the weight
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
