Is it possible to overload destructors in c++?
yes, just like you can overload constructors of your class.
No, you can't
No, you can't. You can't overload destructors of your class. Reason is, you never programmatically call a destructor, it will be called internally when it goes out of scope or when you use delete operator on an object.
Back To Top