dynamic package visibility inquiry 包裹动态可视化查询
This is sometimes called package visibility or friendly visibility.
有时这称作软件包可视性或友好的可视性。
A member function with default visibility is effectively public to all other classes within the same package, but private to classes external to the package.
具有缺省可视性的成员函数对于同一个软件包中所有其它类实际上是公有的,而对于该软件包外部的类,它是私有的。
Initially when writing code, I don't worry too much about categorizing method visibility as default (package), private, public, or protected.
最初在编写代码时,我没有过多地担心将方法可视性归为default(包)、private、public还是protected。
应用推荐