Implement a class named Student. Separate definition from implementation (i.e. Header and CPP files) Other instructions in rar file

1 answer below »
Implement a class named Student. Separate definition from implementation (i.e. Header and CPP files)
Other instructions in rar file
Answered Same DayMar 04, 2021

Answer To: Implement a class named Student. Separate definition from implementation (i.e. Header and CPP files)...

Neha answered on Mar 07 2021
143 Votes
51586/output.png
51586/Student.h
#include
using namespace std;
struct Address {
    str
ing street;
    string city;
    string state;
    string zip;
};
class Student {
private:
    double age;
    string name;
    Address mailingAddress;
    Address physicalAddress;
public:
    Student() {
    }
    Student(double m_age, string m_name, Address mailing_address, Address physical_address) {
        age = m_age;
        name = m_name;
        mailingAddress = mailing_address;
        physicalAddress = physical_address;
    }
    double getAge() {
        return age;
    }
    string getName() {
        return name;
    }
    Address getMailingAddress() {
        return mailingAddress;
    }
    Address getPhysicalAddress() {
        return physicalAddress;
    }
    void setAge(double m_age) {
        age = m_age;
    }
    void...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here