is throwing exception from a constructor not a good practice ?
Answer Posted / shwetha.v.g
Actualy though when an object is created memory will b
allocated but the process of allocation of memory will be
complete only if conytructor is successfully invoked so if
constructor throws an exception memory will not be
allocated for that object.
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
What is #include cstdlib in c++?
What is set in c++?
How do you traverse a btree in backward in-order?
What is a c++ map?
What character terminates all character array strings a) b) . c) END
What does it mean to declare a member function as static?
In the derived class, which data member of the base class are visible?
What is stack unwinding?
What is searching? Explain linear and binary search.
What is #include sstream?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is extern c++?
Which is the best c++ compiler for beginners?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
What is the operator in c++?