Interview Questions

What is an explicit constructor?

C++ Interview Questions and Answers


(Continued from previous question...)

What is an explicit constructor?

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.

(Continued on next question...)

Other Interview Questions