We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
在类需要允许其他类或者函数访问它的非公有成员时
益处:使类得以良好的封装
坏处:稍微降低了代码的可读性