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 is the full form nasa?
What are the three forms of cin.get() and what are their differences?
What are function prototypes?
why is c++ called oops? Explain
What are the two types of polymorphism?
Explain the difference between realloc() and free() in c++?
What happens if a pointer is deleted twice?
What are default parameters? How are they evaluated in c++ function?
How much do c++ programmers make?
What is a base class?
What would happen on forgetting [], while deallocating an array through new?
Do vectors start at 0 c++?
What is purpose of abstract class?
What is the use of 'using' declaration in c++?
What are the uses of c++ in the real world?