Destructors and memory leaks. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Destructors and memory leaks.

Are destructors are memory leaks related?

21st Oct 2018, 6:18 PM
ACHQUE
ACHQUE - avatar
3 Answers
+ 1
👍🏻 thank you.
21st Oct 2018, 7:13 PM
ACHQUE
ACHQUE - avatar
0
No destructor is opposite to constructor which is a method for creating an object from a class and memory leak is when the program allocates memory incorrectly aka memory leak is kind of error.
21st Oct 2018, 7:09 PM
darkorbit17493
0
no problem i hope it helped
21st Oct 2018, 7:14 PM
darkorbit17493