#ifndef PIECEWORKER_H
#define PIECEWORKER_H

#include "Employee.h"
#include <string>
using namespace std;

class PieceWorker : public Employee
{
public:
// constructor
  PieceWorker(int newId, string newName, double newPayRate);
// setter & getter
  void setQuantity(int newQuantity);
  int getQuantity();
// custom function
  double calculatePay();
private:
  int quantity; // number of items produced
};

#endif

