so I have
I want to use pC to call the draw() function in A.Code:
class A{
public:
draw(){
cout<<"hello";
}
}
class B{
A* pA;
friend class C;
}
class C{
B* pB;
}
I used this pB->pA->draw(); but it doesnt seem to work.
Did I call it correctly?