What is an explicit constructor?



What is an explicit constructor?..

Answer / nimish singh

A conversion constructor declared with the explicit keyword. The compiler does not use an explicit constructor to implement an implied conversion of types. It's purpose is reserved explicitly for construction.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Why seem interrupt handlers as member functions to be impossible?

1 Answers  


What is an operator function? Describe the function of an operator function?

1 Answers   Fidelity,


What is recursion?

7 Answers  


Out of fgets() and gets() which function is safe to use?

1 Answers  


Define the process of error-handling in case of constructor failure?

1 Answers  


What is the difference between a declaration and a definition?

1 Answers  


Does c++ have foreach?

1 Answers  


Write a program to find the Fibonacci series recursively.

1 Answers   Huawei,


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

1 Answers  


Should I learn c or c++ or c#?

1 Answers  


Where the memory to the static variables is allocated?

1 Answers  


What is setw manipulator in c++?

1 Answers  


Categories