# include # include # include class Employee { public: char first[10]; char last[10]; int pay; Employee* next; Employee(char a[10], char b[10], int c); Employee(); ~Employee(); virtual void print(); }; Employee::Employee(char a[10], char b[10], int c) { strcpy(first,a); strcpy(last,b); pay=c; } Employee::Employee() { next='\0'; cout<<"Please enter employee first and last name, as well as his pay per month. "<>pay; } Employee::~Employee() { cout<<"Hi this is a destructor, I do absoluletly nothing!!! :)"<>hours; } HourlyEmployee::HourlyEmployee(char a[10], char b[], int c, int d): Employee(a, b, c) { hours=d; } void HourlyEmployee::print() { Employee::print(); cout<<" hours "<< hours<print(); myEmployee=myHourlyEmployee; myEmployee->print(); }