The earnings
function pointer in the vtable for class BasePlusCommissionEmployee
points to the BasePlusCommissionEmployee
’s earnings
function, which returns the employee’s base salary plus gross sales multiplied by commission rate. The print
function pointer points to the BasePlusCommissionEmployee
version of the function, which prints the employee’s base salary plus the type, name, social security number, commission rate and gross sales. Both functions override the functions in class CommissionEmployee
.