Say I have an interface defined as:
class MyInterface : public virtual ObjectInterface {
public:
virtual bool MyFunc() = 0;
};
Then I have a class which adopts this interface, in the header file:
class Concrete : public virtual MyInterface, public Object {
};
Then in the implementation file I have:
bool Concrete::MyFunc() {
return false;
}
Why do I get the error: Out of line declaration? I've tried adding const
and override
to the implementation but get a similar error.