Question: In the class definition, initialize the data members, integer numEmployees and string state, with the default values 1 and Unknown, respectively. Ex. If the input
In the class definition, initialize the data members, integer numEmployees and string state, with the default values 1 and "Unknown", respectively. Ex. If the input is 15DC, then the output is: Number of employees: 1, State: Unknown Number of employees: 15, State: DC Note: The class's print function is called first after the default constructor, then again after the inputs are passed to the setters: \#include \#include using namespace std; class Restaurant \{ public: void SetNumEmployees (int restaurantNumEmployees); void SetState(string restaurantState); void Print O; private: \}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
