// File: dayofyear_v3.h
// Definition of DayOfYear class with == operator friend function
// Represents a calendar date

#ifndef DAY_OF_YEAR_H_
#define DAY_OF_YEAR_H_

#include <iostream>
using namespace std;

class DayOfYear
{
  public:
     DayOfYear( );
     DayOfYear(int theMonth, int theDay);
     int Month( ) const;
     int Day( ) const;
     void Input(istream & in );
     void Output(ostream & out ) const;
     friend bool operator== (const DayOfYear & date1,
                             const DayOfYear & date2);

  private:
     int myMonth;
     int myDay;
};  // end DayOfYear

#endif // DAY_OF_YEAR_H
