the header:
#ifndef EMPLOYEE_H_
#define EMPLOYEE_H_
#include "Date.h"
#include "String.h"
class Employee {
private:
String firstname;
String lastName;
const Date birth;
const int id;
const Date start;
double salary;
int status;
public:
Employee();
Employee(char* firstname,char* lastname,Date birth,int id,Date start,double salary,int status);
virtual ~Employee();
};
the cpp:
#include "Employee.h"
#include "Date.h"
#include "String.h"
Employee::Employee() :id( 0 ) {
salary=0;
status=0;
}
Employee::Employee(char* firstname,char* lastname,Date birth,int Id,Date start,double salary,int status){
}
Employee::~Employee() {
}
#endif /* EMPLOYEE_H_ */
how to initialize all the const variables in the constructor??