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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!