I just want to say thanks to everyone who responded to this posting.
Your responses were all very  helpful in helping me to more fully
understand the concepts in question. Thanks to everyone and hopefully
I can offer similar assistance in the future...

/Sincerely,
 John <[EMAIL PROTECTED]>
 

> 
> holotko <[EMAIL PROTECTED]> wrote:
> >
> > Being spoiled by Java's garbage collector leads me to this quick
> > question again concerning constructors in C++.
> >
> > If I allocate memory via "new" using a constructor
> >
> > i.e.
> >
> >     class Foo
> >     {
> >       Foo()
> >         { word = new char[LENGTH + 1];  }
> >
> >       ~Foo()
> >         { delete word; }
> >
> >         ...
> >      }
> >
> > When I create an object of class Foo memory will be allocated for the
> > char buffer "word". Now when the object is no longer needed must I
>
-- 
email: [EMAIL PROTECTED]
Local mailserver <landreau.ruffe.edu> , remote <ns.computer.net>

Reply via email to