Constructors and Destructors on C++ related Questions and Answers


Question :   Which of the following gets called when an object goes out of scope?
1. constructor
2. destructor
3. main
4. virtual function
Answer :   2 - destructor  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter