Question: The code is in C++ 1. Create an Employee class that is derived from the Person class shown below. The Employee class should contain private

The code is in C++
1. Create an Employee class that is derived from the Person class shown below. The Employee class should contain private variables for the employee's department (string), and salary (integer). The Employee class should contain a constructor and a setSalary0 method that sets the employee's salary. Show the class definition, the constructor implementation, and the setSalary0 method implementation class Person public: Person(const string nm, const int id); void print(): string getName() private: string name; int idNum
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
