3 ms·The same as C++, destructors get called when an object goes out of scope.by eptcyka 10mo agoThe same as C++, destructors get called when an object goes out of scope.