0

can we use a function to call destructor

4th Oct 2016, 4:02 PM
Nikhil Jaiswal
Nikhil Jaiswal - avatar
3 odpowiedzi
+ 2
we don't need to call a destructure . like constructure , it calls automatically when an object is no longer in use
6th Oct 2016, 5:02 AM
Ritu kapadia
Ritu kapadia - avatar
+ 1
No destructor can't be called. Destructor can only be called by the compiler at the closing block of main() function .
4th Oct 2016, 4:30 PM
Nantha kumar .R
Nantha kumar .R - avatar
+ 1
* Destructor is called at the point at which an object is destroyed. And no, it can't be called, unlike a constructor.
4th Oct 2016, 11:24 PM
Cohen Creber
Cohen Creber - avatar