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 problems might the following macro bring to the application?

1057


In c++, what is the difference between method overloading and method overriding?

1147


Define vptr.

1034


What are the three forms of cin.get() and what are their differences?

1241


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

2074


What is format for defining a structure?

1086


What is the difference between the parameter to a template and the parameter to a function?

1121


What is meant by entry controlled loop?

1125


What is meant by the term name mangling in c++?

962


Is c++ a good beginners programming language?

1078


Can you pass a vector to a function?

982


Can we inherit constructor in c++?

1096


What do you mean by early binding?

1069


Define a constructor - what it is and how it might be called (2 methods)?

1144


Do class declarations end with a semicolon?

1084