is throwing exception from a constructor not a good practice ?
Answer Posted / dps
ya its better i think because it will take less memory and
less time
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we use classes in programming?
Can a constructor return a value?
What are the different types of comments allowed in c++?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Explain method of creating object in C++ ?
What is a forward referencing and when should it be used?
Explain the scope of resolution operator.
What does new in c++ do?
What is a dll entry point?
What is scope in c++ with example?
Is C++ case sensitive a) False b) Depends on implementation c) True
What are built-in functions? What is the syntax for the definition?
Define copy constructor.
Where do I find the current c or c++ standard documents?
What is scope operator in c++?