Source of rem2.h


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

  4: #ifndef REM2_H
  5: #define REM2_H

  7: class Reminder
  8: {
  9: public:

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

 14:     ~Reminder();
 15:     // Destructor
 16:     // Pre:  self is initialized.
 17:     // Post: Message string storage pointed to by messagePtr
 18:     //       has been deallocated.

 20:     void Display() const;

 22: private:

 24:     int   date;
 25:     char* messagePtr;
 26: };

 28: #endif