How can I get something like this to compile? It says Player is abstract! (but the method that InputEventHandler requires has been implemented by a class I inherited)
The simplest case that illustrates my issue, the following code will not compile because InputEventHandler can't find the implementation of GetId even though it (should) be there because I inherited Entity.
class InputEventHandler
{
public:
virtual int GetId () = 0;
};
class Entity
{
public:
int GetId ()
{
return 23;
}
};
class Player: public Entity, public InputEventHandler
{
};
int main ()
{
Player* player = new Player;
delete player;
return 0;
}
Thanks as usual!
EDIT: This is in C++