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

What is different in C++, compare with unix?

611


What is operators in c++?

568


Do class declarations end with a semicolon?

604


What is a sequence in c++?

587


What are the advantages of using friend classes?

631






What is enum c++?

618


What is a template in c++?

637


Explain the isa and hasa class relationships. How would you implement each?

617


What is the fastest c++ compiler?

589


What should main() return in c and c++?

529


Can non-public members of another instance of the class be retrieved by the method of the same class?

610


How do I use turbo c++?

552


Why the usage of pointers in C++ is not recommended ?

901


Why would you use pointers in c++?

630


Is java as fast as c++?

603