Class constructor and member constructors,
Members - Reputation: 1410
Posted 06 October 2012 - 12:13 PM
I have a class obejct "B" as a member variable within another class "A". Which constructor runs first, A or B?
The idea is that I need to init object B by passing down some information from A. I will leave the constructor of B blank and just call "B->init(pData)" from A's constructor.