I am new to using C ++, and in fact I settled on a problem.
I have class A, B, C defined as follows (PSEUDOCODE)
class A
{
...
DoSomething(B par1);
DoSomething(C par1);
...
}
class B
{
A parent;
...
}
class C
{
A parent;
...
}
The problem is this:
How to do it? If I just do it (as I always did in C #), it gives errors. I pretty much understand the reason for this. (A is not yet announced if I add the link (including) B and C to my own header)
How to get around this problem? (Using the void * pointer is not an imho path)
source
share