hello!
I have two component classes, classA defined before classB,
and I need to call from classA a method in classB (update component coordinates)
classC hold instances of classA and classB, and is defined after those two,
everything start running from classC
i dont know how to deliver access between the classes, they are seperated because
they do different things and otherwise inside one class, they can share resources but, it would be a mess, what if I have more component classes ? mess
class A {
void foo();
};
// class A has been defined
class B {
public:
void bar();
};
// class B has been defined
// implementation. B is known.
void A::foo() {
B gaz;
gaz.bar();
}