How would you represent an error detected during constructor
of an object?



How would you represent an error detected during constructor of an object?..

Answer / arash

errors in constructors are represented by exceptions

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the use of map in c++?

0 Answers  


How do you print for example the integers 3,2,1,5,4 in a binary tree within the console in format where it looks like an actual binary tree?

0 Answers  


What is the difference between #import and #include?

0 Answers  


total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.

0 Answers  


Can I learn c++ without learning c?

0 Answers  






Differentiate between structure and class in c++.

0 Answers  


What is a pointer how and when is it used?

0 Answers  


What does n mean in c++?

0 Answers  


Floating point representation and output seems to be compiler dependent?

1 Answers  


What is the difference between a pointer and a link in c ++?

0 Answers  


What are static variables?

0 Answers  


char *ch = "abcde"; char c[4]; how to copy 'ch' to 'c'?

4 Answers   Thomson Reuters,


Categories