//---------------------------------------------------------------------------- #ifndef NAMEAGECLASS_H #define NAMEAGECLASS_H //---------------------------------------------------------------------------- #include "stringclass.h" #include "boolean.h" //---------------------------------------------------------------------------- class person { public: //----Default constructor person(void); //----Read all elements with prompt void Read(const string& WhichPerson); //----Write all elements void Write(void); //----Check if this person is greater boolean operator >(const person& SmallerPerson); private: string FirstName, LastName; int Age; }; //---------------------------------------------------------------------------- #endif //----------------------------------------------------------------------------