class Animal
{
public:
typedef enum{
CAT,
DOG,
RABBIT,
EAGLE,
FOX
} AnimalType;
static Animal* Create(AnimalType type);
~Animal();
virtual void PlayWith(Animal* other)=0;
virtual void Eat(Animal* other) = 0;
protected:
Animal();
};
I was told that there is a programming error on one of the lines, but i could not find the subtle error. can anyone figure it out please?