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

Write a function to find the nth item from the end of a linked list in a single pass.

0 Answers   Huawei,


Why is c++ not purely object oriented?

0 Answers  


What is the difference between struct and class?

1 Answers  


How do you clear a map in c++?

0 Answers  


1.what is the difference between software & package &application.

1 Answers   Infosys,






What is a memory leak c++?

0 Answers  


How do I get good at c++ programming?

0 Answers  


how many trys can we write in one class

3 Answers   Cap Gemini,


Why the usage of pointers in C++ is not recommended ?

0 Answers   TCS,


What is a 'pure' virtual function and what's its use?

1 Answers  


What is math h in c++?

0 Answers  


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

0 Answers  


Categories