What happens if an exception is throws from an object's
constructor and from object's destructor?
Answers were Sorted based on User's Feedback
Answer / rajesh
exception from object's destructor - could terminate the
program while stack unwinding.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Answer / reegan
if an exception is throws from object constructor, it is
caught by catch block .the same thing is happen in the objects
destructor.
Is This Answer Correct ? | 1 Yes | 3 No |
How did c++ start?
What is near, far and huge pointers? How many bytes are occupied by them?
Describe the advantages of operator overloading?
Can you please explain the difference between overloading and overriding?
What are the basics of local (auto) objects?
write a porgram in c++ that reads an integer and print the biggest digit in the number
Which one is better- macro or function?
What does scope resolution operator do?
How the virtual functions maintain the call up?
Explain working of printf?
What is a literal in c++?
How long will it take to learn programming?