Q:

What does the explicit keyword mean?

0

What does the explicit keyword mean?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

Prefixing the explicit keyword to the constructor prevents the compiler from using that constructor for implicit conversions.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C++ Interview Questions For Experienced

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
How do you access the static member of a class in ... >>
<< How to make a C++ class whose objects can only be ...