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

What do you know about near, far and huge pointer?

0 Answers  


What is the use of structure in c++?

0 Answers  


what is Loop function? What are different types of Loops?

0 Answers  


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

0 Answers  


What is boyce codd normal form in c++?

0 Answers  






Is c++ harder than java?

0 Answers  


What are destructors?

0 Answers  


How would you use the functions sin(), pow(), sqrt()?

0 Answers  


How would you find out if a linked-list is a cycle or not?

0 Answers  


What is a modifier in c++?

0 Answers  


What is general format for a prototype?

0 Answers  


What are the 4 types of library?

0 Answers  


Categories