Derive a class RegularPay from PayCalculator, as described in the previous exercise. It should… 1 answer below »

Derive a class RegularPay from PayCalculator, as described in the previous exercise. It should have a constructor that has a parameter for the pay rate. It should not override any of the methods. Then derive a class Hazard Pay from PayCalculator that overrides the computePay method. The new method should return the amount returned by the base class method multiplied by 1.5.

 

"Is this question part of your assignment? We can help"

ORDER NOW