我知道这个说明符是如何工作的.
我对实际编程中这些东西的实际使用感兴趣.我无法想象任何受保护类成员真正需要的例子(我的意思是当我们不能用'private'替换'protected'时).
c++ protected
c++ ×1
protected ×1