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
in an online class object. When I do this happens the error, due to the 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 do I resolve this error?