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

Is c++ vector a linked list?

552


Why iomanip is used in c++?

637


What do you mean by friend class & friend function in c++?

620


why is c++ called oops? Explain

583


When are exception objects created?

611






If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

590


Do we have to use initialization list in spite of the assignment in constructors?

565


Do you know about latest advancements in C++ ?

660


What is the extraction operator and what does it do?

614


Define basic type of variable used for a different condition in C++?

668


Write a function that swaps the values of two integers, using int* as the argument type?

609


Can a program run without main in c++?

587


What is a singleton c++?

551


What is c++ stringstream?

607


What does asterisk mean in c++?

585