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


Please Help Members By Posting Answers For Below Questions

Why do we use classes in programming?

655


Can a constructor return a value?

674


What are the different types of comments allowed in c++?

674


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

2154


Explain method of creating object in C++ ?

684






What is a forward referencing and when should it be used?

671


Explain the scope of resolution operator.

727


What does new in c++ do?

650


What is a dll entry point?

641


What is scope in c++ with example?

724


Is C++ case sensitive a) False b) Depends on implementation c) True

693


What are built-in functions? What is the syntax for the definition?

672


Define copy constructor.

708


Where do I find the current c or c++ standard documents?

685


What is scope operator in c++?

651