Question: overrides the get _ salary ( ) function . What is wrong with the following definition of get _ salary ( ) in the Manager
overrides the getsalaryfunction What is wrong with the following definition of getsalary in the Manager class?
double Manager::getsalary const
double basesalary getsalary;
return basesalary bonus;
The Manager class cannot call the getsalary function in the base class
The initialization of basesalary should have been double basesalary
Employee::salary;
The call to getsalary should be written as thisgetsalary;
The call to getsalary should be written as Employee::getsalary;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
