// Fig. 9.5: employ.h // Definition of class Employee #ifndef EMPLOYEE_H #define EMPLOYEE_H #include #include using namespace std; class Employee { public: Employee( const string &fst,const string &lst); // constructor ~Employee(); // destructor void setFirstName(const string &fst); void setLastName(const string &lst); const string &getFirstName() const; const string &getLastName() const; private: string firstName; // dynamically allocated string string lastName; // dynamically allocated string }; #endif