Need assignment help
What's the order that local objects are destructed?
In opposite order of construction: First constructed, last destructed.
In the following instance, b''s destructor will be executed first, as compared to the a''s destructor:
example will help you