Question: in c++ Define and implement the class Employee with the following requirements: private data members string type name a. b. double type hourlyRate 2. public
in c++


Define and implement the class Employee with the following requirements: private data members string type name a. b. double type hourlyRate 2. public member functions a. default constructor that sets the data member name to blank"and hourlyRate to zero b. A constructor with parameters to initialize the private data members c. Set and get methods for all private data members d. A constant method weeklyPay() that receives a parameter representing the number of hours the employee worked per week. This method calculates and returns the weekly pay for the employee. Hours worked over 40 are paid at 1.5 times the regular hourlyRate. A constant method print(0 that displays the value of the private data members e
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
