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
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
What are the types of array in c++?
What should main() return in c and c++?
How do we implement inheritance in c++?
What is the header file for setw?
What is a pointer how and when is it used?
How do I get good at c++ programming?
What are c++ redistributables?
Explain the advantages of using friend classes.
What are all predefined data types in c++?
Are vectors faster than arrays?
Write a program to concatenate two strings.
Can java be faster than c++?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What are the advantages of using a pointer?