include #include #include “ProductionWorker.h” using namespacestd; void displayInfo(Productionworker); int main() { try {Productionworker pw(“John Jones”, “123”, “1/1/2006”, 3, 18.00); }catch(Productionworker::Invalidshift) { cout << “Invalidshift”; } displayInfo(pw); cin.get(); return 0; } I’m making aclass though I have pw not declared and Invalid shift does not namea type. Please help me
Productionworker.h:
#ifndef PRODUCTIONWORKER_H
#define PRODUCTIONWORKER_H
#include “Employee.h”
using namespace std;
#include <string>
class Productionworker : public Employee
{
private:
int shift;
double payRate;
public:
class invalidShift
{};
Productionworker() : Employee()
{ shift = 0 ; payRate = 0.0;
}
Productionworker (string cName, string cNumber, string cDate,int cShift,
double cPayRate):Employee ( cName, cNumber, cDate)
{ shift = cShift; cDate; cPayRate; }
void setShift(int s)
{ shift = s;
}
void setpayRate(double r)
{ payRate = r;
}
int getShiftNumber()
PayPal Gateway not configured
PayPal Gateway not configured