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 are compilers in c++?

1103


How a pointer differs from a reference?

1385


What is name hiding in c++?

1219


what is upcasting in C++?

1232


Why pointer is used in c++?

1223


How does the copy constructor differ from the assignment operator (=)?

1189


What are c++ templates used for?

1175


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

1113


Does c++ have a hash table?

1043


Will rust take over c++?

1112


Declare a class vehicle and make it an abstract data type.

1021


What are the benefits of pointers?

1106


What are containers in c++?

1031


What is this pointer in c++?

1476


What is std namespace in c++?

1227