Question: C++ Write a main function to test the class Employee. Define two Employee objects one using the default constructor and the second using the constructor
C++
Write a main function to test the class Employee. Define two Employee objects one using the default constructor and the second using the constructor with parameter. Call the print() method on both objects. Call the weeklyPay on both objects using 39 and 45 as the argument for the number of hours worked. Display the weekly pay
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
