Can a constructor throw a exception? How to handle the error when the constructor fails?
Answer Posted / neelam saini
The constructor never throws a error.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Are c and c++ similar?
Will a catch statement catch a derived exception if it is looking for the base class?
What is a loop? What are different types of loops in c++?
What are the storage qualifiers?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
Why #include is used?
Can a program run without main in c++?
Explain the virtual inheritance in c++.
What is the this pointer?
Write about the scope resolution operator?
Should I learn c++ c?
When there is a global variable and local variable with the same name, how will you access the global variable?
What are the uses of typedef in a program?
Do you know the problem with overriding functions?
Explain pass by value and pass by reference.