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 jobs can you get with a c++ certification?

1052


How do you write a function that can reverse a linked-list?

1109


Which programming language is best to learn first?

1063


What does std :: flush do?

1134


Why do we use the using declaration?

1165


What are the different types of comments allowed in c++?

987


What are advantages of using friend classes?

1072


Incase of a function declaration, what is extern means?

968


What is the use of this pointer in c++?

1007


What is private, public and protected inheritance?

1083


How are Structure passing and returning implemented by the compiler?

1130


What is a storage class used in c++?

1077


What is protected inheritance?

1043


How would you use the functions randomize() and random()?

1073


What are the differences between java and c++?

1074