Can any constructor throw an exception?, C/C++ Programming

Can any constructor throw an exception? How to handle error while the constructor fails?

 

Posted Date: 3/15/2013 3:56:11 AM | Location : United States





A:The constructor can never throws an error 

 

Posted by | Posted Date: 3/15/2013 3:56:51 AM


Related Discussions:- Can any constructor throw an exception?, Assignment Help, Ask Question on Can any constructor throw an exception?, Get Answer, Expert's Help, Can any constructor throw an exception? Discussions

Write discussion on Can any constructor throw an exception?
Your posts are moderated
Related Questions
For this program, you are going to modify your previous program (program 3) so that it will now have a menu to see if the user wants to read the input from a file or interactively.

Create a user-defined data structure (struct) called Node that represents a node within a linked list where the "data" stored in each node is a pointer to a Car object.    a) Wr

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

A virtual function permits derived classes to replace the implementation given by the base class. The compiler makes sure the replacement is always known as whenever the object in

Modify the FACTOR program in this chapter so that it repeatedly asks for a number and calculates its factorial, until the user enters 0, at which point it terminates. You can enclo


Problem : (a) What do you understand by the term ‘constructor' in Java? Explain with an appropriate example. (b) Describe the differences between an object and a class usi

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

I need a project on car rental system using c programming only of college level

Define The Return Statement in Computer Programming? The return statement is used for two purposes once the return statement is executed the program control will be immediately