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
What jobs can you get with a c++ certification?
How do you write a function that can reverse a linked-list?
Which programming language is best to learn first?
What does std :: flush do?
Why do we use the using declaration?
What are the different types of comments allowed in c++?
What are advantages of using friend classes?
Incase of a function declaration, what is extern means?
What is the use of this pointer in c++?
What is private, public and protected inheritance?
How are Structure passing and returning implemented by the compiler?
What is a storage class used in c++?
What is protected inheritance?
How would you use the functions randomize() and random()?
What are the differences between java and c++?