What happens if an exception is throws from an object's
constructor and from object's destructor?

Answer Posted / reegan

if an exception is throws from object constructor, it is
caught by catch block .the same thing is happen in the objects
destructor.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a dangling pointer in c++?

849


What is vector string in c++?

802


What is code reusability in c++?

921


How do you invoke a base member function from a derived class in which you have not overridden that function?

839


Does c++ support multilevel and multiple inheritances?

740


Why Pointers are not used in C++?

802


What is extern c++?

718


What are put and get pointers?

830


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

1174


What is a manipulator in c++?

930


Eplain extern keyword?

770


What do you mean by static variables?

837


What is the syntax for a for loop?

803


What is the difference between global variables and local variable

722


What is using namespace std in cpp?

754