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
How is objective c different from c++?
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
What's the best free c++ profiler for windows?
How we can differentiate between a pre and post increment operators during overloading?
give me an example for testing a program showing the test path .show how the test is important and complex.
Describe the process of creation and destruction of a derived class object?
Describe private, protected and public?
How does c++ sort work?
What are the two main components of c++?
Explain the static storage classes in c++.
What are c++ redistributables?
What is a singleton class c++?
What are containers in c++?
Write about the stack unwinding?
What is iterator c++?