By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,144 Members | 1,286 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,144 IT Pros & Developers. It's quick & easy.

calling base class destructor implicitly from derived classes

P: n/a
Hi,

Does the destructor of a derived class will invoke base class destructor
implicitly?

D
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
* Dave:

Does the destructor of a derived class will invoke base class destructor
implicitly?


Base class destructors are called implicitly.

Which piece of code does the calling is unspecified.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Jul 23 '05 #2

P: n/a
On 2005-05-16, Dave <da*******@gmail.com> wrote:
Hi,

Does the destructor of a derived class will invoke base class destructor
implicitly?


Yes. The destructors are called most-derived first, and likewise constructors
are called most-derived last.

Cheers,
--
Donovan Rebbechi
http://pegasus.rutgers.edu/~elflord/
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.