Constructors and Destructors
public: // ignore this for now
test() { printf(“Constructing…\n”); }
~test() { printf(“Destroying…\n”); }
Constructing… test a declared
Constructing… test b declared
Constructing… test c declared at start of function()
Destroying… test c destroyed when call to function() ends
Constructing… test c declared at second call to function()
Destroying… test c destroyed when second call to function() ends
Destroying… test b destroyed as program ends
Destroying… test a destroyed also