Modify the payroll system of Figs. 10.4 – 10.9 (available in theChapter 10 slide on D2L). Include an additional Employee subclassPieceWorker that represents an employee whose pay is based on thenumber of pieces of merchandise produced. Class PieceWorker shouldcontain private instance variable wage (to store the employee’swage per piece) and pieces (to store the number of piecesproduced). Provide a concrete implementation of method earnings inclass PieceWorker that calculates the employee’s earnings bymultiplying the number of pieces produced by the wage per piece.Create an array of Employee variables to store references toobjects of each concrete class in the new Employee hierarchy.
PayPal Gateway not configured
PayPal Gateway not configured