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 from object's destructor?

Answer Posted / achal ubbott

If an exception is generated by constructor of the class
that object is not created. That means if you do

delete obj_ptr;
the destructor would not be called.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are function prototypes?

1294


What do you mean by late binding?

1204


what is C++ exceptional handling?

1256


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

1259


Why do we use templates?

1111


What is virtual destructor? What is its use?

1122


In what situations do you have to use initialization list rather than assignment in constructors?

1108


How do you differentiate between overloading the prefix and postfix increments?

1139


Write a program to find the Fibonacci series recursively.

1114


What is the main function c++?

1172


what is pre-processor in C++?

1219


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1120


What c++ library is string in?

1106


What is stack unwinding?

1209


What problems might the following macro bring to the application?

1099