What does the explicit keyword on a single-argument constructor prevent?
- A Implicit conversions from the argument type to the class type
- B The constructor being called at all
- C Copy construction
- D Inheritance
Answer
Implicit conversions from the argument type to the class type
Without explicit, a function taking your class silently accepts an int or string, producing surprising conversions.





