Code /* * person.h * CIS 250 * David Klick * 2005-02-21 * * Demonstration of classes, constructors, constructor * overloading, accessor and mutator methods, static * and constant data members, dynamic memory alloaction, * and destructors. */ #ifndef __PERSON_H_ #define __PERSON_H_ #include #include using std::cout; using std::endl; class person { private: static int count; char* name; long ssn; char gender; int age; public: static const int MINIMUM_AGE = 0; static const int MAXIMUM_AGE =110; private: void init(const char* name, const long ssn, const char gender, const int age); public: person(); person(const char* name, const long ssn, const char gender, const int age); ~person(); void setName(const char* name); void setSSN(const long ssn); void setGender(const char gender); void setAge(const int age); const char* getName() const; long getSSN() const; int getAge() const; char getGender() const; static int getCount(); }; #endif