Listing 7 Moving implementation of member functions into the class definition

// date2.h

struct Date
{
   int month;
   int day;
   int year;
   
   // Constructors
   Date()
     {month = day = year = 0;}
   Date(int m, int d, int y)
     {month = m; day = d; year = y;}
   
   Date * interval(const Date&);
};

/* End of File */