deleting an object
- by Nima
Hi,
First, when you want to free the memory assigned to an object in C++, which one is preferred? Explicitly calling deconstructor or using delete?
Object* object = new Object(...);
...
delete object;
OR
object->~Object();
Second, does the delete operator call the deconstructor implicitly?
Thanks,