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


Please Help Members By Posting Answers For Below Questions

Does c++ have arraylist?

638


What is basic if statement syntax?

646


What is std :: flush?

679


How do you flush std cout?

683


What are the important differences between c++ and java?

708






Can we use this pointer inside static member function?

717


What is malloc in c++?

632


Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes

696


What are the two types of polymorphism?

682


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

758


Differentiate between a constructor and a method in C++.

641


How do you save a c++ program?

659


What is the limitation of cin while taking input for character array?

1567


What is the use of map in c++?

723


What are the rules about using an underscore in a c++ identifier?

720