Hello,
OK, Here's my problem. I have created a base class CBaseAnimal that has a virtual function in it. Here's its def:
class CBaseAnimal {
public:
virtual void speak() =0;
};
Now I derive a class CDog based on CBaseAnimal:
class CDog : public CBaseAnimal {
};
NOW I define speak():
void CDog::speak()
{
cout << "BARK BARK!";
}
When I compile (using VC++6), I get the error SetName' : member function not declared in 'CHumanPlayer''!! Shouldn't it be because I derived CDog FROM CBaseAnimal??? PLEASE HELP ME!!!!