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 |
How to detect memory leaks in c++
What is encapsulation in c++ with example?
How to write Multithreaded applications using C++?
2 Answers Honeywell, TCS, Wipro,
What is iomanip c++?
How does a C++ structure differ from a C++ class?
What is class invariant in c++?
What is std::move?
What is size of Empty Class?
Why is c++ still used?
What is the use of bit fields in structure declaration?
why the size of an empty class is 1
List the special characteristics of constructor.