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
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Readers Writers with Processes and Threads Write two programs implementing ``reader pritority readers-writers synchronization'''' on files. One program will use processes, created

What are the debugging methods you employ while came across a problem? A: Debugging with tools such as: 1.      DBG, GDB ,Forte, Visual Studio. 2.      Using tusc to trace

How do you know that your class requires a virtual destructor? A: If at least your class has one virtual function, you must make a destructor for this class virtual. It will let

What is the real function of class - to export data? No, Real purpose of a class isn't to export data. Instead, it's to provide services. Class provides a way to abstract behav

Operators The variables, which are declared and explained, are the operands, which are operated upon by the operators. Operators specify what operations are to be performed on

program to check whether a given point lies inside a rectangle or not

The STL details are described in many places online (see the CS377 webpage for some links), and there's a very quick introduction in Section A.14. Here are just a few additional no

Define Internal static storage class - computer programming? The Internal static variables are those that declared inside a function. The scope of the internal static variables