Error handling and constructor, C/C++ Programming

Provide me the answer, Can a constructor throws an exception? How to handle the error when the constructor fails?

Posted Date: 2/12/2013 6:27:28 AM | Location : United States





The constructor never throws an error.

Posted by Alice | Posted Date: 2/12/2013 6:29:31 AM


Related Discussions:- Error handling and constructor, Assignment Help, Ask Question on Error handling and constructor, Get Answer, Expert's Help, Error handling and constructor Discussions

Write discussion on Error handling and constructor
Your posts are moderated
Related Questions
The new and delete operators The C language has explained library functions- malloc() and free() for dynamic allocation and de-allocation of memory. C++ gives yet another appro

wap to count the numof string present in a word

Description - The TR-069 CPE WAN Management Protocol (CWMP) is a protocol that was created by the Broadband Forum (formally the DSL Forum) which sets out a common method for CPE de

explain me for loop


Insert values in queue - C++ program: Write a program to insert values in queue. int main()   {         int k;     Queue timeLine;     cout     for(

I have a very confusing assignment and I''m struggling to find the right place to begin or how to break the problem down.

A: In C, encapsulation was completed by making things static in a compilation unit or module. It prevented another module from accessing the static stuff. (Incidentally, now static

Write a C++ program according to the following specifications 1. Display a brief description of the program. 2. Ask the user to specify the type of loading (end load, intermediate

Give practice in writing program''s..