468,513 Members | 1,712 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

Why Destructors in C++ can not be overloaded

Hi All,

Can any body tell that

Why Destructors in C++ can not be overloaded
Mar 26 '08 #1
2 6754
Banfa
9,056 Expert Mod 8TB
In what circumstance do you think you would need to be able to overload destructors?
Mar 26 '08 #2
weaknessforcats
9,207 Expert Mod 8TB
An object that is going to be destroyed needs only one way of cleaning itself up.

Note also that the destructor has no arguments and no return type to enforce that once it is called, the object is no longer useable.
Mar 26 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Rajesh Garg | last post: by
20 posts views Thread by Brad Eck | last post: by
26 posts views Thread by Michi Henning | last post: by
8 posts views Thread by Edward Diener | last post: by
3 posts views Thread by alex.gman | last post: by
6 posts views Thread by mlw | last post: by
6 posts views Thread by Jeff Newman | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.