TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRISTIAN S. PEDERSEN
from: MIKE PATTEN
date: 1997-07-10 04:21:00
subject: Deleting a Class.

::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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.