delorie.com/archives/browse.cgi | search |
From: | Seby <cartas AT ita DOT flashnet DOT it> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: C++ question. |
Date: | Thu, 12 Jun 1997 23:51:11 +0200 |
Organization: | Flashnet S.p.A. |
Lines: | 16 |
Message-ID: | <33A06F4F.19F89353@sr.flashnet.it> |
References: | <Pine DOT SUN DOT 3 DOT 95 DOT 970612190322 DOT 19176B-100000 AT ernie DOT eecs DOT uic DOT edu> |
Reply-To: | cartas AT ita DOT flashnet DOT it |
NNTP-Posting-Host: | 194.247.161.221 |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Andrew Deren wrote: > will the constructor generate a new copy of this object each time I > call > it. yes...new copy of object will be created. > And if it does will the memory previously taken by my_obj be freed? > Thank you. > yes, ..but if you allocate other memory..( using new or malloc) in costructor..or other methods..you must free them in destructor. Seby Carta
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |