Should I explicitly call a destructor on a local variable?
Answer:
No. Destructor invokes automatically when the local variable is destroyed. But might be you will get bad results from calling a destructor on the same object a second time!.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Answer:
No. Destructor invokes automatically when the local variable is destroyed. But might be you will get bad results from calling a destructor on the same object a second time!.
need an explanation for this answer? contact us directly to get an explanation for this answer