#include <Employee.hpp>
Inheritance diagram for Employee::
Public Methods | |
Employee (const char *first, const char *last) | |
virtual | ~Employee () |
const char * | getFirstName () const |
const char * | getLastName () const |
virtual double | earnings () const=0 |
void | printName () const |
void | printInfo () const |
Static Public Methods | |
int | getCount () |
Private Attributes | |
char * | firstName |
char * | lastName |
Date * | birthDate |
Date * | hireDate |
Static Private Attributes | |
int | count = 0 |
|
Definition at line 10 of file Employee.cpp. |
|
Definition at line 38 of file Employee.cpp. 00038 { 00039 if ( firstName != NULL ) delete [] firstName; 00040 if ( lastName != NULL ) delete [] lastName; 00041 if ( birthDate != NULL ) delete birthDate; 00042 if ( hireDate != NULL ) delete hireDate; 00043 --count; 00044 } |
|
Reimplemented in Boss, CommissionWorker, HourlyWorker, and PieceWorker. |
|
Definition at line 8 of file Employee.cpp. 00008 { return count; } |
|
Definition at line 48 of file Employee.cpp. 00048 { 00049 return firstName; 00050 } |
|
Definition at line 52 of file Employee.cpp. 00052 { 00053 return lastName; 00054 } |
|
Reimplemented in HourlyWorker. Definition at line 60 of file Employee.cpp. 00060 { 00061 cout << lastName << ", " << firstName; 00062 00063 if ( hireDate != NULL ) 00064 cout << "\nHired: " << hireDate; 00065 00066 if ( birthDate != NULL ) 00067 cout << "\nBirth date: " << birthDate; 00068 00069 cout << '\n'; 00070 } |
|
Reimplemented in CommissionWorker, HourlyWorker, and PieceWorker. Definition at line 56 of file Employee.cpp. Referenced by HourlyWorker::printInfo(), and PieceWorker::printName().
00056 { 00057 cout << firstName << ' ' << lastName; 00058 } |
|
Definition at line 29 of file Employee.hpp. |
|
Definition at line 7 of file Employee.cpp. |
|
Definition at line 26 of file Employee.hpp. |
|
Definition at line 30 of file Employee.hpp. |
|
Definition at line 27 of file Employee.hpp. |