/* Personal_info Class Implementation */ #include #include "Personal_info.h" using namespace std; /* Personal_info member function setGender(): * Input: * p_gender - object’s gender * Process: * sets the value of member variable gender * Output: * none */ void Personal_info::setGender(char p_gender) { gender = p_gender; return; } /* Personal_info member function setHaircolor(): * Input: * p_haircolor - object’s hair color * Process: * sets the value of member variable haircolor * Output: * none */ void Personal_info::setHaircolor(string p_haircolor) { haircolor = p_haircolor; return; } /* Personal_info member function setAge(): * Input: * p_age - object’s age * Process: * sets the value of member variable age * Output: * none */ void Personal_info::setAge(int p_age) { age = p_age; return; } /* Personal_info member function setJob_info(): * Input: * p_job - object’s job * Process: * calls Job_info constructor to set member variable job * Output: * none */ void Personal_info::setJob_info(Job_info p_job) { job = p_job; return; } /* Personal_info member function getGender(): * Input: * none * Process: * retrieves the value of member variable title * Output: * returns the object's gender */ char Personal_info::getGender() const { return (gender); } /* Personal_info member function getHaircolor(): * Input: * none * Process: * retrieves the value of member variable haircolor * Output: * returns the object's hair color */ string Personal_info::getHaircolor() const { return (haircolor); } /* Personal_info member function getAge(): * Input: * none * Process: * retrieves the value of member variable age * Output: * returns the object's age */ int Personal_info::getAge() const { return (age); } /* Personal_info member function getJob_info(): * Input: * none * Process: * retrieves the object's Job_info * Output: * returns the object's Job_info */ Job_info Personal_info::getJob_info() const { return (job); }