0
Concept of destructor?
2 ответов
+ 3
The method that is executed when an object get out of the scope. When all the references to a memory path are deleted. For example if you write a=b=c, a & b are references of c, then references to the obj. When the obj is deleted from the memory, is executed the destructor and a, b & c turn to a null value (Exactly, a null reference). Srry for my bad english :P If you set a, b & c to null, the obj get out of the scope and the destructor is executed. Is more complicated that my definition xD
0
i also want to know about destructor but above answer is like a book , can anyone solve it with pratically? i mean , on the object oriented method..