Line 1: cout << E.GetName();
Line 2: cout << E.GetHours();
Line 3: cout << E.Address;
Line 4: cout << E.GetRate();
Line 5: cout << E.Rate;
Line 6: cout << E.Pay();
(ii) Explain why the following implementation of function Pay()would result in a
compilation error.
Expert's answer
The Pay() would result in error because it is defined as a protected member of the class Employee and therefore it cannot be accessed in the main function.
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!