The __destructor???___ operator reclaims memory previously allocated by new
it says it is wrong.... what is it?
C++ question?
'delete' operator reclaims memory previously allocated by 'new'.
Destructor is a method of an object (not an operator) that is just invoked immediately before memory de-allocation. Destructor by itself does not reclaim memory allocated by 'new'.
Reply:The destructor function can reclaim resources previously allocated to an object.
If you're reclaiming memory you'll be using the delete or delete [] operators or perhaps free().
Reply:class ,delete
local florist
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment