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
Which software is best for coding?
What is flush () in c++?
What is atoi?
Carry out conversion of one object of user-defined type to another?
When does a 'this' pointer get created?
How to allocate memory dynamically for a reference?
What is boyce codd normal form in c++?
What is protected inheritance?
What is the exit function in c++?
What is an arraylist c++?
Define token in c++.
Explain overriding.
What is functions syntax in c++?
What is the use of lambda in c++?
List the advantages of inheritance.