home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / IDIOMS.ZIP / 9-5.H < prev    next >
C/C++ Source or Header  |  1991-12-04  |  517b  |  24 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 FirstClass : public Letter {
  7. public:
  8.     FirstClass();
  9.     ~FirstClass();
  10.     Envelope make();
  11.     Envelope make(double weight);
  12.     // . . . .
  13. };
  14.  
  15. class OverNight : public Letter {
  16. public:
  17.     OverNight();
  18.     ~OverNight();
  19.     Envelope make();
  20.     Envelope make(double weight);
  21.     double postage() { return 8.00; }
  22.     // . . . .
  23. };
  24.