Question: 8. (True/False) The following is syntactically valid and makes semantic sense when deriving an employeeType class from the base class personType: class employeeType: public personType

8. (True/False) The following is syntactically valid and makes semantic sense when deriving an employeeType class from the base class personType: class employeeType: public personType \{ public: void setInfo(string, string, string, double, string, string); void setSalary(double); void setDepartment(string); void setCategory(string); void setID(string); double getSalary() const; string getDepartment(string) const; string getCategory()const; string getID()const; private: string department; double salary; string employeeCategory; string employeeID; \} A. True B. False 8. (True/False) The following is syntactically valid and makes semantic sense when deriving an employeeType class from the base class personType: class employeeType: public personType \{ public: void setInfo(string, string, string, double, string, string); void setSalary(double); void setDepartment(string); void setCategory(string); void setID(string); double getSalary() const; string getDepartment(string) const; string getCategory()const; string getID()const; private: string department; double salary; string employeeCategory; string employeeID; \} A. True B. False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
