0

Can a destructor be overloaded?

12th Jan 2017, 10:37 PM
Sol
Sol - avatar
2 Answers
+ 4
Destructors can't be overloaded, because there can only be one destructor per class.
12th Jan 2017, 10:47 PM
Potto
Potto - avatar
+ 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.
30th Apr 2017, 8:43 PM
Volker Milbrandt
Volker Milbrandt - avatar