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
#questiStarting with a blank solution, write a program to prompt the user for an employee number, hourly rate and hours worked. Compute and display the employee number, gross weekl

#A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of

electricity biil code

Structures A structure is a user-defined data type, which may have different data types as its members. Creating a structure is a two-part process. First, a structure template

Question: (a) A bank has four types of accounts with annual interest rates as follows: Savings 8% Savings with Cheque Book 5% Current 4% Fixed deposits 10% Using

Purpose This assignment is an exercise in implementing the queue ADT using a singly-linked list. This assignment also introduces the concept of templates. Assignment Th

Create a program that asks the user for two integers which represent the numerator and denominator parts of fraction. Print out a simplification of the fraction. Example: Enter th

A: The simplest way is to use a stringstream: #include #include #include using namespace std; string itos(int i) // convert int to string { stringstream s;

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing tha