J
jan247
my header file looks like this:
class A;
class B;
class C;
class A
{
....
};
class B
ublic A
{
private:
B doSomething(A& a);
public:
B processMe(C c){...; doSomething(c);} // Problematic statment
};
class C: public A
{
....
}
The problem is that by the time it reaches the line of code with the
problematic statement, it hasn't declared yet that C indeed extends A.
Is there any way on how I can declare this? Or any other possible
options if i can't?
class A;
class B;
class C;
class A
{
....
};
class B
{
private:
B doSomething(A& a);
public:
B processMe(C c){...; doSomething(c);} // Problematic statment
};
class C: public A
{
....
}
The problem is that by the time it reaches the line of code with the
problematic statement, it hasn't declared yet that C indeed extends A.
Is there any way on how I can declare this? Or any other possible
options if i can't?