Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / akshay

constructor:
the destructors of all the member objects that were
correctly created are called, then code goes to the catch
statement if any

dtors:
legally allowed, however, it should be caught within the
function. if it is not caught, then it may lead to a call to
terminate() function. this call would happen in the case
when the destructor was itself called due to stack unwinding
happening because of another exception in probably some
other function.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name four predefined macros.

989


Differentiate between the manipulator and setf( ) function?

1096


What is a breakpoint?

957


Write a program which employs Recursion

1193


What is object in c++ example?

1043


Which should be more useful: the protected and public virtuals?

978


What is Destructor in C++?

1141


Why is "using namespace std;" considered bad practice?

1036


What is an undefined reference/unresolved external symbol error and how do I fix it?

1077


Why do we use using namespace std in c++?

1026


What are the various oops concepts in c++?

967


What do you mean by static variables?

1105


Is c++ map a hash table?

971


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1823


Explain function overloading and operator overloading.

1020