Hey guys and gals, I posted earlier regarding problems with my program being split into 3 files; a header, implementation and main. As my title says, I get that error in the main.cpp file. Any workarounds for this?
Those are declarations. Definitions of functions include the bodies.
Functions that return type void don't actually return anything, which certainly seems suspect given the names and that you're attempting to use them as if they do return something.
No, those are declarations. I meant the definitions in Employee.cpp. Everything looks good in the header, but you don't define the getter functions like you did the setters. Definitions are what you have in Employee.cpp. A declaration, or what is also called a prototype, declare the functions return type, name and parameters followed by a semicolon. Without definitions the getters do nothing. All you have to do for the getters is return the data member for that each function is named after, that way it's passed to cout.