// Fig. 9.5: employ.cpp // Member function definitions for class Employee #include #include #include #include "Employee.h" using namespace std; // Constructor copies the first and last names into the object. Employee::Employee( const string &fst, const string &lst ) { setFirstName(fst); setLastName(lst); } // Destructor deallocates dynamically allocated memory Employee::~Employee() { } void Employee::setFirstName(const string &fst) { firstName=fst; } void Employee::setLastName(const string &lst) { lastName=lst; } const string &Employee::getFirstName() const { return(firstName); } const string &Employee::getLastName() const { return(lastName); }