1
I’m developing a project where I have an online class that inherits from an X class, where this X class needs to give a new
on an online class object. When I do this error happens due to inheritance I believe:
expected class-name before
class X
{
public:
X();
virtual ~X();
X* makeMethod(string Method);
protected:
private:
};
X* X::makeMethod(string Method){
return new online();
}
class online: public X{
public:
online();
virtual ~online();
void makeMethod(string Method);
protected:
private: };
How to resolve this error?