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 are function prototypes?
What do you mean by late binding?
what is C++ exceptional handling?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
Why do we use templates?
What is virtual destructor? What is its use?
In what situations do you have to use initialization list rather than assignment in constructors?
How do you differentiate between overloading the prefix and postfix increments?
Write a program to find the Fibonacci series recursively.
What is the main function c++?
what is pre-processor in C++?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
What c++ library is string in?
What is stack unwinding?
What problems might the following macro bring to the application?