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 setw manipulator in c++?

1075


How long does it take to get good at leetcode?

1174


Explain unexpected() function?

1101


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

1262


Difference between overloaded functions and overridden functions

1057


What is an associative container in c++?

1065


What is the best book for c++ beginners?

1043


Why are pointers used?

1004


What is else if syntax?

1164


What are enumerations?

1102


What is polymorphism in c++? Explain with an example?

1034


What is the difference between global variables and static varables?

1140


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

1894


What are arrays c++?

1103


Can you please explain the difference between static and dynamic binding of functions?

1031