Chapter - 5: Classes in C++

What does the delete operator do in addition to deallocating the memory used by the object?


D
Sections
5
Exercises

delete operator not only deallocate the memory but also call the destructor for that object it is used.


© 2021 Garbage Valuegarbage value logo