Get premium membership and access questions with answers, video lessons as well as revision papers.

Explain the purpose of explicit in a C++ program.

      

Explain the purpose of explicit in a C++ program.

  

Answers


Davis
The explicit keyword applies only to constructors.It prevents implicit constructor conversion.
Githiari answered the question on February 12, 2018 at 13:03


Next: What does a conversion function do in a C++ program?
Previous: What is the principal restriction placed on a const member function in a C++ program?

View More Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions