In this section, we create an enhanced employee hierarchy to
solve the following problem:
A company pays its employees on a weekly basis. The employees are of
four types: Salaried employees are paid a fixed weekly salary regardless
of the number of hours worked, hourly employees are paid by the hour
and receive "time-and-a-half" overtime pay for all hours worked in
excess of 40 hours, commission employees are paid a percentage of their
sales, and salaried-commission employees receive a base salary plus a
percentage of their sales. For the current pay period, the company has
decided to reward salaried-commission employees by adding 10% to
their base salaries. The company wants to implement an app that
performs its payroll calculations polymorphically.