What happens if an exception is throws from an object's
constructor and from object's destructor?
Answers were Sorted based on User's Feedback
Answer / rajesh
exception from object's destructor - could terminate the
program while stack unwinding.
|Is This Answer Correct ?||2 Yes||0 No|
Answer / achal ubbott
If an exception is generated by constructor of the class
that object is not created. That means if you do
the destructor would not be called.
|Is This Answer Correct ?||1 Yes||0 No|
Answer / reegan
if an exception is throws from object constructor, it is
caught by catch block .the same thing is happen in the objects
|Is This Answer Correct ?||1 Yes||3 No|
Who was the creator of c++?
what is difference between internet and Internet?
Why do we need constructors in c++?
Floating point representation and output seems to be compiler dependent?
CAN U SAY WHICH PROGRAMING LANGUAGE IS USED BY DOCTORS....?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
What are the operators in c++?
Explain public, protected, private in c++?
What are static and dynamic type checking?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
Can we define function inside main in c++?