且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C ++ - “成员函数未声明”在派生类中

更新时间:2022-12-25 09:55:59

In PlayerSpriteKasua.h you need to re-declare whatever methods you're going to override/implement (without the "=0" to say that those methods are not abstract anymore). So you need to write it like follows:

class PlayerSpriteKasua : public PlayerSpriteBase
{
public:
    virtual void think();
    virtual void render(long long ScreenX, long long ScreenY);
    virtual int getHealth();
};

...or did you omit that to keep your post shorter?

相关阅读

技术问答最新文章