Quote:
Originally posted by Syneris
since class A's private members can only be accessed by its own member functions, then you need class B's constructor to call the public member functions of class A that modify the private members (accessors). I may be wrong or be doing it the long/hard way.
To modify the private members of A, yes, you need public methods in A accessible to B. But to create an instance of A, the constructors should do the job. I bet #including in whatever file B is in in whatever file A is defined in will do the trick.