Stupid question about destructor
Alexandre Oliva
aoliva@redhat.com
Sun Aug 26 06:21:00 GMT 2001
On Aug 24, 2001, Pascal Francq <pfrancq@ulb.ac.be> wrote:
> I have a stupid question concerning two classes:
Questions about programming languages do not belong in the mailing
list about the development *of* GCC (not *with* GCC). Next time,
please ask in comp.lang.c++ or some similar forum.
> Must I explicitly called the destructor of a from b, or is it done
> automatically?
In C++, destructors of derived classes implicitly call the destructors
of base classes.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc
mailing list