/* * File: employee.h * Author: Robert I. Pitts * Last Modified: April 8, 2000 * Topic: Introduction to Inheritance in C++ * ---------------------------------------------------------------- * * Employee class definition. */ #ifndef _EMPLOYEE_H #define _EMPLOYEE_H #include class Employee { public: Employee(string theName, float thePayRate); string getName() const; float getPayRate() const; float pay(float hoursWorked) const; protected: string name; float payRate; }; #endif /* not defined _EMPLOYEE_H */