Question: Assignment due soon please C++ Class Student - separate definition form implementation: 1. A struct called Address with the following 4 members of type string
Class Student - separate definition form implementation: 1. A struct called Address with the following 4 members of type string (street, city, state, and zip). Place this struct in the class' Header file. 2. Private fields: age of type double > name of type string mailing Address of type Address physicalAddress of type Address 3. Functions: Non-default Constructor: o 4 parameters: age, name, mailing address, and physical address o Initialize all class private variables Destructor to print the following message: Instance removed from memory 4 accessors for each of the private fields 4 getters for each of the private fields Test main() 1. Complete the missing portion of the provided test file. You will need to add the lines of code to create and instance called testStudent of type Student. 2. Refer to for a sample test run in Figure 1. The test code used in this figure: John_Doe 20 100 Here_St New_York NY 11001 99 There_St New_York NY 11001 Grading Points 10 10 Item Class Header and CPP Struct Variables Non-default constructor Destructor Accessors/Mutators Missing main() code Code compiles and run 20 10 1 10 15 10 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
