class Employee
{
public:
unsigned int getAge() const;
unsigned int getYearsOfService() const;
double getSalary() const;
void setAge(unsigned int tage);
void setYearsOfService(unsigned int tyearsOfService);
void setSalary(double tsalary);
Employee(unsigned int tage);
~Employee();
private:
unsigned int age;
unsigned int yearsOfService;
double salary;
}
Employee::Employee(unsigned int tage)
{
age = tage;
}
Employee::~Employee(){}
unsigned int Employee::getAge() const
{
return(age);
}
unsigned int Employee::getYearsOfService() const
{
return(yearsOfService);
}
double Employee::getSalary() const
{
return(salary);
}
void Employee::setAge(unsigned int tage)
{
age = tage;
}
void Employee::setYearsOfService(unsigned int tyearsOfService)
{
yearsOfService = tyear