--> Christian S. wrote to All <--
CS>If I "delete" a Class, allocated with "new", will the
CS>Class' destructor be called ?
Yep, that's why new/delete is preferable to malloc()/free() for C++.
BTW, make sure if you allocate with new [] you free with delete [].
Cliff Rhodes
cliff.rhodes@juge.com
crhodes@flash.net
X CMPQwk 1.42 1692 X"Knowledge and history are the enemies of religion." -
Napoleon
--- Maximus/2 3.01
---------------
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
|