Object destructed /////// basically, why is this line after "Object says: hello"
fatal 3
My question is when i=2, the destructor of the class Class is called after the function Hello is called. However, if I look at when i=1, the destructor is called right after. So, I am wondering if destructors are called only at the very end of a function or something like that.
Can someone clarify what is going on. Thanks!
I have another code for example where the initialization of the destructors are confusing me.. I don't know when destructors are called, sometimes they work at the very end of the function, sometimes in the middle.