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
Using a smart pointer can we iterate through a container?
What is else if syntax?
Why is main function important?
What is an associative container in c++?
What parameter does the constructor to an ofstream object take?
what is the difference between overloading & overriding? give example.
What is the array and initializing arrays in c++?
Why c++ is the best language?
What do you mean by const correctness?
Does c++ vector allocate memory?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
What do you mean by early binding?
What is a vector c++?
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
Is c++ harder than java?