//---class declaration section

class Date

{

  private:         // notice the colon after the word private

     int month;  // a data member

     int day;     // a data member

     int year;   // a data member

 public:

    Date (int = 7, int = 4, int = 96);         //a member function - the constructor

    void setdate(int, int, int);       // a member function

    void showdate(void);           // a member function

};

//--- class implementation section

Date :: Date (int mm, int dd, int yy)

  {

     month = mm;

     day = dd;

     year = yy;

}

void Date :: setdate (int mm, int dd, int yy)

{

   month = mm;

   day = dd;

   year = yy;

  return;

}

void Date :: showdate (void)

{

   cout<< "The date is " << month << "/" << "/" << year << endl;

   return;

}