13

不定项选择题 13 /43

In C++, what does "explicit" mean? what does "protected" mean?

参考答案

explicit-keyword enforces only explicit casts to be valid
Protected members are accessible in the class that defines them and in classes that inherit from that class.
Protected members only accessible within the class defining them.
All the above are wrong