::To: All From: Christian S. Pedersen (2: Subj: Deleting a Class. ::
----------------------
CSP(> CSP(> To.......... All
CSP(> Hello All.
CSP(> If I "delete" a Class, allocated with "new", will the Class'
CSP(> destructor be called ?
Yes, it will. That's why new and delete replaced malloc() and
free(). New will call the constructor and delete will call the
destructor; malloc() and free() don't.
Mike Patten
... "Me hav'em heap trouble." - Tonto the programmer
---
Blue Wave/386 v2.30
--- WWIVToss v.1.38b Registered
---------------
* Origin: Faith keeps collapsin' on my head... (1:271/150.0)
|