+ 2
I coudn't understand the statement "when objects are destroyed by the delete pointer expression or gone out of scope"?
when are the objects go out of scope..
3 Answers
+ 11
wrote it for u, sorry for my english)
https://code.sololearn.com/ce1fW6XyX5Yk/?ref=app
0
when you find a memory for an object, you can delete or clean the memory, when the program finish or you clean yhe memory, the destructor is called
0
thank you