From: Seby 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: Reply-To: cartas AT ita DOT flashnet DOT it NNTP-Posting-Host: 194.247.161.221 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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