Question: Problem statement Make a base class called employee that follows these requirements below: The base class shall have a constructor that inputs the employee's first
Make a base class called employee that follows these requirements below:
- The base class shall have a constructor that inputs the employee\'s first and last name, efficiency rating (use 1 through 5), a notes field and their salary.
- Within employee make a virtual destructor and virtual accessors and getters for firstname, last name, efficiency rating and salary.
- The getSalary() and getFirstName() and getLastName() accessors shall be virtual methods.
- Include a virtual method called PrintValues() that outputs all of the information stored in the base class.
- Make a manager class that inherits from employee. The virtual class shall have a constructor that takes in the same information as the employee class, but also includes the manager\'s title and department.
- Include virtual methods for getSalary(), getEfficiency() and printValues(). PrintValues() shall output all of the information about the manager.
- Add functionality of your choosing that implements at least one of the Standard Template Libraries found in C++.
Step by Step Solution
There are 3 Steps involved in it
Below is Employee base class and Manager derived class in C that follows all the given requirements Ive also included an STL feature by using a vector to store additional notes Features Virtual Method... View full answer
Get step-by-step solutions from verified subject matter experts
