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

Define what is constructor?

596


What is scope resolution operator in c++ with example?

567


What is static function? Explain with an example

570


Explain terminate() function?

602


What is the size of a vector?

590






What do you understand by pure virtual function? Write about its use?

592


What is a memory leak c++?

598


What is DlgProc?

608


Explain the volatile and mutable keywords.

625


What are the extraction and insertion operators in c++?

575


What is the use of default constructor?

583


What is setw manipulator in c++?

609


What are advantages of c++?

577


What is ctime c++?

589


What c++ library is string in?

592