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
Tracing of Abstract array: inline int isZero( const Object& o ) {     return o == NOOBJECT; }   int AbstractArray::isEqual( const Object& obj ) const {

Write a program to count the prime number in array

#include stdio.h> #include conio.h> #include string.h> void main() {           int i=0,j=0,k=0,l=0;           int a[3][3],temp[3][3];           clrscr();

What is the use of default constructor? - It's a constructor that doesn't accept any parameters. - If there is no user-defined constructor for a class, compiler declares a d

Verifone pos offline mod vx670 Project Description: I want a programmer who will build custom application for Offline VX670 to collect and save info+pin 1) Press the am

Should I explicitly call a destructor on a local variable? Explain it.

A: In C++ the access privileges are public, private and protected. The default access level assigned to members of a class is private. Private members of any class are accessible o