home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / IDIOMS.ZIP / 8-1.C < prev    next >
C/C++ Source or Header  |  1991-12-04  |  551b  |  22 lines

  1. /* Copyright (c) 1992 by AT&T Bell Laboratories. */
  2. /* Advanced C++ Programming Styles and Idioms */
  3. /* James O. Coplien */
  4. /* All rights reserved. */
  5.  
  6. class Employee: public Class {
  7. public:
  8.     Employee(Exemplar);
  9.     Employee *make();
  10.     Employee *make(const char *name, EmployeeId id);
  11.     long printPaycheck();
  12.     void logTimeWorked(Hours);
  13. protected:
  14.     Employee();
  15.     Employee(const char *name, EmployeeId id);
  16. private:
  17.     Dollars salary;
  18.     Days vacationAllotted, vacationUsed;
  19.     String name;
  20.     EmployeeId id;
  21. };
  22.