/* name: employee_main.cxx purpose: main file for Employee class */ #include #include "employee.h" #include "empowered.h" #include "manager.h" void PrintEmployeeType(EmployeeInterface* e) { e->getEmployeeType(); } int main(int argc, char** argv) { using namespace std; int ret = 0; Employee e1; Empowered e2; Manager e3; e1.getEmployeeType(); cout << e1.getMonthlySalary() << endl; e2.getEmployeeType(); cout << e2.getMonthlySalary() << endl; e3.getEmployeeType(); cout << e3.getMonthlySalary() << endl; cout << e3.Employee::getMonthlySalary() << endl; PrintEmployeeType(&e1); PrintEmployeeType(&e2); PrintEmployeeType(&e3); return ret; }