New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Why we use distructor???
2 Answers
+ 10
In order to explicitly specify program instructions when an object is uninitialised.
+ 2
a destructor is important for freeing up the memory that was used by the object.