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
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
How to access a variable of the structure?
Can we use this pointer inside static member function?
Write a C++ Program to check whether a number is prime number or not?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is the return value of the insertion operator?
What is meant by a delegate?
What does the ios::ate argument do?
What do you mean by storage classes?
What is dev c++ used for?
What are namespaces in c++?
Define a constructor?
How many standards of c++ are there?
What is c++ namespace?
Explain class invariant.