Need some help on class inheritance
I'm working on a project for my computer science class and I've come upon a problem that I cannot figure out how to implement. The class PERSON was provided by the instructor and the assignment was to write a new class EMPLOYEE inheriting the functions of PERSON. The one thing that I am having a problem with is not inheriting the class PERSON but rather writing a constructor that allows the assignment of an object from class PERSON to an EMPLOYEE. I.E.
This is the constructor that I wrote to set all data for the PERSON and EMPLOYEE class at once:
employee::employee(char *n, char *s, char *d, char *b, int h,
int w, char *companyName,
char *companyDivision)
: person(n,s,d,b,h,w)
Now, what I'm having trouble with is:
employee::employee(const person &p, char *companyName,
char *companyDivision)
Someone please help me as to how I could assign a person to the employee. Thanx in advance.