// File: Employee.cpp // Member function definitions for // abstract base class Employee. // Note: No definitions given for pure virtual functions. #include #include "Employee.h" // Constructor copies the first and last names into the object. Employee::Employee(const string &first, const string &last) { setFirstName(first); setLastName(last); } 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); } // Print the name of the Employee void Employee::print(ostream &dest) const { dest << firstName << ' ' << lastName; }