What happens if an exception is throws from an, object's
constructor and object's destructor?
Answer Posted / truong
1. If exception is thrown in the constructor, the destructor will be not called.
2. If exception is thrown in the destructor of a static object, exception will be catch in the main.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is do..while loops structure?
Define anonymous class.
What is the difference between the functions memmove() and memcpy()?
What are guid?
What are the advantages of using pointers in a program?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
What do the keywords volatile and mean mutable?
Are c and c++ similar?
What is a c++ object?
Is map ordered c++?
What is the purpose of template?
Where are setjmp and longjmp used in c++?
What does new do in c++?
What is null c++?
Why is c++ not purely object oriented?