私有对象由用户访问密钥保护。
类型同为Foo的两个对象可直接访问对方的私有字段。
Two objects each of type Foo can directly access each other's private fields.
公有测试用来测试公有api,而私有测试则是用来测试Request对象这样的东西。
Public tests test the public API, while private tests test things like the Request object.
“私有”和“公有”在这里的意思和在大多数面向对象语言里一样。
"Private" and "public" have the same meaning here as in most object-oriented languages.
“私有”和“公有”在这里的意思和在大多数面向对象语言里一样。
"Private" and "public" have the same meaning here as in most object-oriented languages.
应用推荐