嵌套类型 (Nested Types) 在private类型里定义的嵌套类型,那么嵌套类型的权限也是private;在fileprivate类型里定义的嵌套类型,那么嵌套类型的权限也是...
基于37个网页-相关网页
描述设计嵌套类型的准则。
清单7输出显示了嵌套类型定义在被解析的签名中的使用方法。
The Listing 7 output shows how nested type definitions are used within the parsed signatures.
嵌套类型的可访问域决不能超出包含类型的可访问域。
The accessibility domain of a nested type never exceeds that of the containing type.
应用推荐