Hi I have a scenario like this:
Then, In Outer.cxx I want to create object b of Bar such that it can use the member variables of f in the constructor.
Like the constructor for Bar would look something like Bar* b = new Bar(f->a);
Can I do something like this? Can I access the member functions of f when creating b?
Also, Can I access the member variables of f when creating b?
But then I need to ensure that I create object f before I create b right?
for the non static case: yes