Can a constructor throw a exception? How to handle the error when the constructor fails?



Can a constructor throw a exception? How to handle the error when the constructor fails?..

Answer / neelam saini

The constructor never throws a error.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is c++ prototype?

0 Answers  


What is iterator c++?

0 Answers  


Can you think of a situation where your program would crash without reaching the breakball, which you set at the beginning of main()?

1 Answers  


How a modifier is similar to mutator?

0 Answers  


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

0 Answers  






Hi i need to Acess a variable "int Intval" in the below mentioned code .How to Access it guys i am waiting for your reply

3 Answers  


Explain deep copy?

0 Answers  


Why do we use iterators?

0 Answers  


What is a reference in C++?

1 Answers  


Define macro.

0 Answers  


Differentiate between declaration and definition.

0 Answers  


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

0 Answers  


Categories