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...

is throwing exception from a constructor not a good practice ?

Answer Posted / shwetha.v.g

Actualy though when an object is created memory will b
allocated but the process of allocation of memory will be
complete only if conytructor is successfully invoked so if
constructor throws an exception memory will not be
allocated for that object.

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #include cstdlib in c++?

1153


What is set in c++?

1088


How do you traverse a btree in backward in-order?

993


What is a c++ map?

1331


What character terminates all character array strings a) b) . c) END

1227


What does it mean to declare a member function as static?

1029


In the derived class, which data member of the base class are visible?

1082


What is stack unwinding?

1085


What is searching? Explain linear and binary search.

957


What is #include sstream?

1029


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

963


What is extern c++?

968


Which is the best c++ compiler for beginners?

1046


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

1108


What is the operator in c++?

1093