New course! Every coder should learn Generative AI!
Try a free lesson0
Can a destructor be overloaded?
2 Answers
+ 4
Destructors can't be overloaded, because there can only be one destructor per class.
+ 1
as you can't give any parameters to the destructor call, always the destruxtor without parameters would be called. thus it would be useless and the destructor can't be overloaded.