// date.h // this is the header file for the Date class #ifndef DATE_H_ #define DATE_H_ class Date { private: int month, day, year; public: Date(int=1,int=1,int=2001); // accessors int getMonth() const { return month; }; int getDay() const { return day; } int getYear() const { return year; } // operators friend bool operator ==(const Date&, const Date&); // other methods void set(int,int,int); // m,d,y void print(); void read(); }; #endif