#pragma once #include class Date { public: // CONSTRUCTORS Date(); // default is month 1, day 1, year 2000 Date(int m, int d, int y); // MODIFIER void set_date(int mo, int d, int y); // ACCESSORS int get_day() const; int get_month() const; int get_year() const; // COMPARISON OPERATORS // Member function < // Returns true if caller < parameter, false otherwise bool operator <(const Date& compare); // friend function == // Returns true if month, day and year of two parameters match, false otherwise friend bool operator ==(const Date& d1, const Date& d2); private: int day, month, year; }; // Non-member function > // Returns true if first parameter > (later than) second parameter bool operator >(const Date& d1, const Date& d2);