I am trying to create an object "C" than contains an array of "B" objects, and each of these "B" objects conatins an array of "A" objects. Actually creating the objects is not the problem, the problem is that i can't figure out how to access the member functions of the A class, from a C class member function where the B class objects were created. It looks kinda like this:

Code:
class A {
  public:
    void memberFunctionA();
  private:
    int a_data;
};

class B {
  public:
     void memberFunctionB();
  private:
    A *a_ptr;
};

class C {
  public:
    void memberFunctionC();
  private:
    B *b_ptr;
};

...
...
...

B::B() {
  a_ptr = new A[4];
} 

void C::memberFunctionC() {

  b_ptr = new B[4];

}

....
....
....

int main()
{
    C c;
     c.memberFunctionC();
}

What I want os to be able to use memberFunctionA() in memberFunctionC(). is there any way I can do this?