The `explicit` keyword prevents unwanted type conversions. Class ctors that only take 1 param are special: They could be used to perform type conversions. If the ctor is marked as `explicit`, the conversion can only happen... well, explicitly. #learntocode #cpp #cplusplus
1
0
5
0
0
Download Image
@CppWithProjects Hi, I have emailed you, but no reply. I have already paid, but I have no access to the GitHub repo