0

is there any way to visualise how a destructor works

30th Jul 2016, 11:44 AM
gowtham
5 odpowiedzi
+ 1
Depends on what you mean by "visualize". For non-default constructors you can step through the custom code by using a debugger. For implicitly generated default destructors and the implicitly generated part of the non-default destructors there exists no source code a debugger can step through. Still, you might be able to see the assembler instructions, if you want to.
30th Jul 2016, 12:05 PM
Stefan
Stefan - avatar
+ 1
yes you can declare a destructor in a class ~ClassNam() { cout<<"destructing"<<endl;}
6th Aug 2016, 2:36 PM
Sabbir Ahmed Shibli
Sabbir Ahmed Shibli - avatar
0
thanks
30th Jul 2016, 12:33 PM
gowtham
0
No prob. :-)
30th Jul 2016, 1:51 PM
Stefan
Stefan - avatar
0
yes only one way to visualise destructor works using perform a program
30th Jul 2016, 4:15 PM
Ajay Bamniya
Ajay Bamniya - avatar