no 'void employeessavitch::Employee::set_net_pay(double)
. The answer is right in front of you. What you do not put in your code is done at compile time. Same thing that happens when you use usingnamespace std;
.usingnamespace employeessavitch;
and comment or remove the {} on lines 11 and 58 and see what happens.