c++ initialized specified for non-virtual method

后端 未结 3 1754
轮回少年
轮回少年 2021-02-19 23:26

I have a.h as shown below

class A
{
public:
    void doSomething()=0;
};

Then i have b.h as shown below

#include \"a.h\"

class         


        
3条回答
  •  孤城傲影
    2021-02-19 23:54

    It means that A's do something isn't virtual, but you are trying to make it pure virtual.

提交回复
热议问题