Vidyalelo
C++ Programming · Q33

Classes and Objects in C++

Programming · C++ Programming · question 33

Q33

What is the purpose of the keyword 'explicit' before a constructor in C++?

A.
To specify the return type of the constructor
B.
To prevent implicit conversions during object initialization
Answer
C.
To mark the constructor as static
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board