home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
IDIOMS.ZIP
/
8-1.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-12-04
|
551b
|
22 lines
/* Copyright (c) 1992 by AT&T Bell Laboratories. */
/* Advanced C++ Programming Styles and Idioms */
/* James O. Coplien */
/* All rights reserved. */
class Employee: public Class {
public:
Employee(Exemplar);
Employee *make();
Employee *make(const char *name, EmployeeId id);
long printPaycheck();
void logTimeWorked(Hours);
protected:
Employee();
Employee(const char *name, EmployeeId id);
private:
Dollars salary;
Days vacationAllotted, vacationUsed;
String name;
EmployeeId id;
};