#ifndef PERSON_H #define PERSON_H #include using std::string; class Person { public: Person(int s, const string & n = "") : ssn(s), name(n) {} const string & getName() const { return name; } int getSSN() const { return ssn; } bool operator==(const Person & rhs) const { return ssn == rhs.ssn; } bool equals(const Person & rhs) const { return *this == rhs; } private: const int ssn; string name; }; #endif