Question: Client Class - Class Composition (Aggregation) Create the new project Assign05-ClientComposition. Click the Project tab and select Add Class... Click C++ Class and then the

 Client Class - Class Composition (Aggregation) Create the new project Assign05-ClientComposition.Click the Project tab and select Add Class... Click C++ Class and

Client Class - Class Composition (Aggregation) Create the new project Assign05-ClientComposition. Click the Project tab and select Add Class... Click C++ Class and then the Add button to add class files to the project. Create simple classes Name and Addr Code the.h header files and.cpp implementation modules for these two classes Use this class description (public function prototypes and private functions and data members) for Name.h Name.h class header #pragma once #include using namespace std; class Name public: Name(); Name (string 1, string f, string m); voidsetName(string 1Name, string fName, string mid); Il display first middle last name string to cout voiddisplayName() private: const; string last; string first; string middle; d: Code the Addr class using this Addr.h specification: Addr.h class header #pragma once #include using namespace std; class Addr public: Addr); Addr (string strAddr, string city, string state, string zip); I/ construct 4-part address informat void setAddr(string a, string c, string s, string z); I set streetAddr, city, state, zip void displayAddr() / default constructor const; Il display address info on two lines private: string streetAddr; II streetAddr number and street (plus direction and qualifiers -like Ave. Rd. Blvd.) string city; CAVCProjectsOOPIClientComposition DebugIClientComposition.exe string state; string zip; // 5-digit zip code 1001 artha L. Barton 4521 0ak Kansas City, MO 64110 0: output of displayclient () ClientComposition.cpp larold Engle 711 E. 68th St Kansas City, HO 64129 003 Burton Ray Worthington 2735 Bellef ontaine Kansas City, MO 61109 Add Client class .h and.cpp files to the project. The Client class is comprised of a numeric identifier, plus the aggregated contents of an instance of the Name and Addr classes 1001 o address o city. no state Press any key to continue

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!