Can a constructor return a value?



Can a constructor return a value?..

Answer / nashiinformaticssolutions

It is possible for a constructor to return a value. A constructor cannot explicitly return a value; instead, it implicitly replaces the current instance of the class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is a map in c++?

0 Answers  


What is purpose of abstract class?

0 Answers  


What is java and c++?

0 Answers  


How can I learn c++ easily?

0 Answers  


why v use c++ even we have microprocessor

2 Answers   CybAge,


What is == in programming?

0 Answers  


What is void pointer in c++ with example?

0 Answers  


What will happen if a pointer is deleted twice?

0 Answers   Agilent, HAL,


Please post the model question paper of hal?

2 Answers  


what is Member Functions in Classes?

0 Answers  


What is the type of 'this' pointer? When does it get created?

0 Answers  


What is the use of setprecision in c++?

0 Answers  


Categories