0
Why this codE has 21 output??Is unset means object destroyed???
2 ответов
+ 3
Well, it clearly does
0
Basically a deconstructor is called after there are no references to an object. After using the unset function (not sure what it does), there were no references to the object (so garbage collection came to pick it up and the deconstructer was called)