#ifndef PERSON_H #define PERSON_H #include #include using namespace std; class Person{ public: Person(int s, const string& n = "") : ssn(s), name(n){ // nothing to do because we used an initializer list } // Note this class accepts the default destructor, // copy constructor, and assignment operator // What do these two different uses of const signify? const string & getName() const { return name; } // Why no const for the return value? int getSsn() const { return ssn; } // If no parameter is passed to print, out is set to cout void print(ostream & out = cout) const { out << ssn << ", " << name; } private: int ssn; string name; }; #endif