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

Answer Posted / dee

if the exception is thrown in constructor, its caught or
function terminate will eb called.
U cannot throw exception from destructor

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation in c++ with example?

580


What is runtime errors c++?

567


what is multi-threading in C++?

610


Explain Memory Allocation in C/C++ ?

630


What is a loop? What are different types of loops in c++?

591






Explain the auto storage classes in c++.

597


What is meant by entry controlled loop?

656


What is abstract class in c++?

579


Differentiate between C and C++.

705


What is a constant reference?

613


What is the full form nasa?

595


What is class syntax c++?

590


Why do we use classes in programming?

568


What is class invariant in c++?

740


How do c++ struct differs from the c++ class?

588