You may want to simply use a single character classification code to designate the class of the employee. Also, the employees are organized into a hierarchy as shown. Link to Figure. The basic employee class stands for an unpaid volunteer who wants to help in order to gain experience. The number of hours worked are maintained for hourly employees, along with an hourly rate.
Regular employees have a base pay.
Then there are consultants. Also, you would need a print function for each class. Redefine the record class into a set of related classes. Define the static members. Define the virtual functions.