Question: 2) Consider the code below: Employee class: class Employee { public: Employee(string theName, float thePayRate); protected: string getName0 const; float getPayRate0 const; float pay(float hours


2) Consider the code below: Employee class: class Employee { public: Employee(string theName, float thePayRate); protected: string getName0 const; float getPayRate0 const; float pay(float hours Worked) const; private: string name float payRate; Definitions for some of the methods follow: Employee::Employee(string theName, float thePayRate) name theName; payRate -thePayRate; float Employee::pay(float hours Worked) const return hours Worked * payRate; Manager Class #include "employee"h" class Manager : public Employee\ public: Manager(string theName, float thePayRate, bool isSalaried); protected: bool getSalaried0 const; float pay(float hours Worked) const; private: bool salaried
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
