0
is there any way to visualise how a destructor works
5 ответов
+ 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.
+ 1
yes you can declare a destructor in a class ~ClassNam() { cout<<"destructing"<<endl;}
0
thanks
0
No prob. :-)
0
yes only one way to visualise destructor works
using perform a program