I'm doing an assignment for a C++ class and I'm having some serious issues understanding the topic. The assignment was to make a class called Employee..then make a class called Payroll that is derived from Employee. I think I am doing something wrong with my syntax but I can't figure out what it is. I have the employee class working.....but when I try to do anything with the derived class it gives a compile error. What am I doing wrong?

I know that the employee class is working and it doesn't seem to matter what I put into the payroll class (constructor or otherwise...it all gives the same error).

Here are my class declarations...

Thanks in advance!

Phil

p.s. The error I'm getting says "Unresolved External Symbol"
-------------------

Code:
class Employee{

protected:
char name[50];
char ssn[11];
char empId[5];
char hireDate[10];

public:
Employee();
Employee(char social[], char EmpId[], char HireDate[], char Name[]){
setSocial(social);
setEmpId(EmpId);
setHireDate(HireDate);
setName(Name);
}
bool setSocial(char[]);
void printSocial();
bool setEmpId(char[]);
void printEmpId();
bool setHireDate(char[]);
void printHireDate();
bool setName(char[]);
void printName();
};

class Payrollublic Employee{

protected:
float payRate;
float overtimeRate;
int hoursworked;

public:
Payroll(float rate,float overtime,int hours){
setPayRate(rate);
setovertime(overtime);
sethours(hours);
}

bool setPayRate(float);
bool setovertime(float);
bool sethours(int);

};