C++ Interview Questions and Answers

 

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.

Posted by:Richards