I coudn't understand the statement "when objects are destroyed by the delete pointer expression or gone out of scope"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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..

10th Jun 2017, 8:00 AM
Ahmad Ali Saim
Ahmad Ali Saim - avatar
3 Answers
+ 11
wrote it for u, sorry for my english) https://code.sololearn.com/ce1fW6XyX5Yk/?ref=app
10th Jun 2017, 8:51 AM
Drinker
Drinker - avatar
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
12th Jun 2017, 8:36 PM
Andrés04_ve
Andrés04_ve - avatar
0
thank you
21st Jun 2017, 5:27 AM
Ahmad Ali Saim
Ahmad Ali Saim - avatar