I have two classes, lets say Class A and Class B. My goal is to have both classes use eachothers functions. Problem is, the multi-file include structure doesn't seem to let me do that. Here's what I'm trying to do:
#file A.h
Class A{
public:
int GetInfo();
private:
B * ptrToB;
};
#file B.h
Class B{
public:
int getStuff();
private:
A * ptrToA;
};
My goal is for an A class method to be able to call ptrToB->getStuff()
and for a B class method to be able to call ptrToA->getInfo()
Is this possible? How so? If not, why not?