I want to have an interface IA and another that extends it IB.
A then implements IA, and B inherits A and also implements IB.
However when compiling B gets errors saying the IA stuff is undefined, even though A defined it all :(
class IA
{
public:
virtual ~IA(){}
virtual void foo()=0;
};
class IB : public IA
{
public:
virtual void bar()=0;
};
class A : public IA
{
public:
A();
void foo();
};
class B : public A, public IB
{
public:
B();
void bar();
};
error C2259: 'B' : cannot instantiate abstract class
due to following members:
'void IA::foo(void)' : is abstract