2 ms·
We can add code to destructors to do general stuff, not only deallocation. The same applies for constructors. In C++ this works amazingly well for objects in t
by Shorel 15y ago
We can add code to destructors to do general stuff, not only deallocation. The same applies for constructors.
In C++ this works amazingly well for objects in the stack (not in the heap, as you need call the destructor yourself).