How to Extend a Class in C++

Hi I've got a Class Employee and im trying to create a subclass called TempEmployee, in writing in Eclipse, so I created a new class with a seperate
.h and .cpp file, and had thought that it was as easy as

/**
* TempEmployee.h
**/
class TempEmployee : public Employee {

public: whatever

};

but I keep getting the following error:

error: expected class-name before '{' token
really dont know what to do to solve it and hope someone can tell me what to do
thanks
Last edited on
You must
#include "Employee.h"
where the base class is defined.
Thanks
Topic archived. No new replies allowed.