class Employee
{
public:
Employee();
Employee( constchar [], int, double );
void printEmp();
void increaseSalary( double );
void setIDnum( int );
void setSalary( double );
int getIDnum();
double getSalary();
private:
char name[25];
int idNum;
double salary;
};
and this is what it said the constructor should do.
"The default constructor (the constructor that takes no arguments) for the class should initialize the data members so that name hold "None," idNum holds 1000, and salary holds 0. Use the setIDnum and setSalary methods to initialize the identification number and salary, respectively (this will help to guard against invalid initial values). Use the strcpy function to initialize the name.
The other constructor for the class should initialize the data members using the passed in arguments. It takes 3 arguments: a constant character array with an employee name, an integer employee identification number, and a double that holds the employee salary. Use the setIDnum and setSalary methods to initialize the identification number and salary, respectively (this will help to guard against invalid initial values). Use the strcpy function to initialize the name."