Question: overrides the get _ salary ( ) function . What is wrong with the following definition of get _ salary ( ) in the Manager

overrides the get_salary()function. What is wrong with the following definition of get_salary() in the Manager class?
```
double Manager::get_salary() const
{
double base_salary = get_salary();
return base_salary + bonus;
}
```
The Manager class cannot call the get_salary() function in the base class
The initialization of base_salary should have been double base_salary =
Employee::salary;
The call to get_salary should be written as this->get_salary();
The call to get_salary should be written as Employee::get_salary();
overrides the get _ salary ( ) function . What is

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 Programming Questions!