+ 2

We can overload destructors ?

True

22nd Feb 2018, 7:54 AM
Wasim Abbasi
Wasim Abbasi - avatar
2 Respuestas
+ 3
In c++ you can't overload destructors. Because it's called automatically it doesn't take any arguments. So how do you want to overload it? The system wouldn't know which one is supposed to be called.
22nd Feb 2018, 8:27 AM
Alex
Alex - avatar
+ 1
OK.
22nd Feb 2018, 8:29 AM
Wasim Abbasi
Wasim Abbasi - avatar