//DayOfYear Declaration File (header file) #include using namespace std; class DayOfYear { //The function is a friend function of DayOfYear //Therefore it can access private (and protected) //members friend bool IsSame (DayOfYear one, DayOfYear another); public: DayOfYear(); //default constructor DayOfYear(int m,int d); //constructor that takes two paramters void input( ); void output( ); void set(int new_month, int new_day); //Precondition: new_month and new_day form a possible date. //Postcondition: The date is reset according to the arguments. int get_month( ); //Returns the month, 1 for January, 2 for February, etc. int get_day( ); //Returns the day of the month. private: void check_date( ); int month; int day; };