Source of rem3.h


  1: // Filename: REM3.H
  2: // Purpose:  Specification file for Reminder class implemented in REM3.CPP.

  4: #ifndef REM3_H
  5: #define REM3_H

  7: class Reminder
  8: {
  9: public:

 11:     Reminder(/* in */ int date = 19700101,
 12:              /* in */ const char* messageString = "No message");

 14:     ~Reminder();

 16:     void Display() const;

 18:     void MutilateMessageString();
 19:     // Used only for pedagogical reasons to help show that only a
 20:     // "shallow" copy of an object has been made.
 21:     // Pre:  self has been initialized with a message of size >= 2.
 22:     // Post: Alternate characters of the message pointed to by
 23:     //       messagePtr have been changed to 'X'.

 25: private:

 27:     int   date;
 28:     char* messagePtr;
 29: };

 31: #endif