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 function overriding in c++?
How do I tokenize a string in c++?
What are friend classes? What are advantages of using friend classes?
What is general form of pure virtual function? Explain?
What are static variables?
Will c++ be replaced?
What are iterators in c++?
Which c++ compiler is best?
What is the use of pointer in c++ with example?
What are the advantages of c++ over c?
why is iostream::eof inside a loop condition considered wrong?
How will you call C functions from C ++ and vice-versa?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
How does work in c++?
Is c++ the hardest programming language?