d destructor can be called explicitly but u *should never* do that....... reason: a destructor is caaled automatically when its scope ends....there is no way of preventing its call..... so if u have called it explicitly also then u can be in a *serious problem*if ur destructor deallocates memory.....:):P
On Sun, Aug 14, 2011 at 10:47 AM, Aashish <[email protected]> wrote: > can we call a destructor in our own defined class explicitly or it > will be executed automatically ? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Regards Himanshu Kansal Msc Comp. sc. (University of Delhi) -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
