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
What is setfill c++?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
What is the main function c++?
Explain function overloading
Explain what are accessor methods?
What is java and c++?
What is polymorphism & list its types in c++?
What are separators in c++?
Is map ordered c++?
Why c++ is created?
What are keywords in c++?
Can you Mention some Application of C/C++?
What is meaning of in c++?
Which ide is best for c++?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).