Can somebody help me figure out what I did wrong with my default constructor declaration
I'm getting an error message no appropriate constructor available
Thanks
TimeOff.h
class TimeOff
{
private:
string name;
int id;
NumDays maxSickDays;
NumDays sickTaken;
NumDays maxVacation;
NumDays vacTaken;
NumDays maxUnpaid;
NumDays unpaidTaken;
public:
//default constructor
TimeOff (string=" ", int=0, double=0, double=0, double=0, double=0,
double=0, double=0);
void setMaxSickDays(double);
void setSickTaken(double);
void setMaxVacation(double);
void setVacTaken(double);
void setMaxUnpaid(double);
void setUnpaidTaken(double);
double getMaxSickDays() const
{return maxSickDays.getDays();}
double getSickTaken() const
{return sickTaken.getDays();}
double getMaxVacation() const
{return maxVacation.getDays();}
double getVacTaken() const
{return vacTaken.getDays();}
double getMaxUnpaid() const
{return maxUnpaid.getDays();}
double getUnpaidTaken() const
{return unpaidTaken.getDays();}
};
TimeOff.cpp
TimeOff::TimeOff(string n, int empid, double maxSick, double sTaken, double maxVac,
double vTaken, double maxUnpd, double uTaken)
{
//check if string is empty
if(!n.empty())
//assign name
name=n;
//assign employee id
empid=id;
//initialize max sick days to default
maxSickDays.setHours(maxSick);
}