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

Why is it necessary to use a reference in the argument to the copy constructor?

637


How does class accomplish data hiding in c++?

662


What is purpose of abstract class?

586


What are 2 ways of exporting a function from a dll?

618


Write about the members that a derived class can add?

570






What's c++ used for?

602


Explain unexpected() function?

586


What is the use of :: operator in c++?

604


How do I exit turbo c++?

587


Which one is a preferred language C or C++? Why?

622


What's the most powerful programming language?

601


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

3244


What is the difference between new() and malloc()?

619


How much do c++ programmers make?

566


What is buffer and example?

527