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

Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3921


What is general format for a prototype?

1042


Write a program to show polymorphism in C++?

1150


Is java as fast as c++?

1105


Can union be self referenced?

1158


Can we use this pointer inside static member function?

1072


What are default parameters? How are they evaluated in c++ function?

1172


How can we check whether the contents of two structure variables are same or not?

1073


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

1059


Difference between declaration and definition of a variable.

1166


Explain how an exception handler is defined and invoked in a Program.

1178


What is a pointer with example?

1262


Write some differences between an external iterator and an internal iterator?

1027


Do you need a main function in c++?

1123


Why we use #include conio h in c++?

1052