Question: help me this question is C++ 2. Given a class named Employee with this data member declaration: int hire_year; how would you code the setter
help me this question is C++

2. Given a class named Employee with this data member declaration: int hire_year; how would you code the setter function so it doesn't allow for years before 2004? a. void Employee::set_hire_year(int hire_year_param) { if (hire_year_param >= 2004) { hire_year hire_year_param; } } b. void Employee::set_hire_year(int hire_year_param) { if (hire_year_param
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
