enclosing的意思_enclosing class是什么意思

1. As with any other member, the enclosing class determines access to this type.

像任何其他成员一样,外围类决定对这个类型的访问。

2. We might want to prevent users of the enclosing class from seeing the code that implements the nested class.

我们可能希望防止外围类的用户看见嵌套类的实现代码。

3. A nested class also can be declared and then later defined in the body of the enclosing class.

也可以在外围类的定义体中声明然后定义嵌套类。

4. enclosing class在线翻译

4. An object of the nested type does not have members defined by the enclosing class.

嵌套类型的对象不具备外围类所定义的成员,同样,外围类的成员也不具备嵌套类所定义的成员。

5. A member of a nested class is not a member of the enclosing class.

在其类外部定义的嵌套类的成员,不能定义在外围类内部,嵌套类的成员不是外围类的成员。

6. Attributes should be protected by their enclosing class.

属性应该保护他们的封闭类。

7. In this new thread, you then access stocks, a member variable of the enclosing Activity (the class that creates the UI).

在这个新线程中,您可以访问stocks,一个封装Activity(此类创建了UI)的成员变量。

8. Two refactorings, Convert Anonymous Class to Nested and Convert Nested Type to Top Level, are similar in that they move a class out of its current to scope to the enclosing scope.

ConvertAnonymousClass(转换匿名类)和ConvertNestedType(转换嵌套类)这两种重构方法比较相似,它们都将某个类从其当前范围移动到包含这个类的范围上。

9. If the name is not found in the class or its enclosing base classes, then the call is in error.

如果在类或者类的基类中都没有找到这个函数,这次调用就是错误的。

10. The first set of enclosing braces delineates the construction of an anonymous inner class, and the second set delineates the instance initializer for the anonymous inner class.

第一组闭合括弧划定一个匿名内部类的构造,第二组划定匿名内部类的实例初始化语句块。

11. This is a common technique in GWT (and in Java UI programming in general) because it gives you access to the fields and methods of the enclosing class.

这是GWT(和一般的JavaUI编程)中常用的技巧,因为它使您可以访问包含的类中的字段和方法。

12. Here the enclosing aspect is defining a method called hasListeners on behalf of the Point class.

这儿的aspect代码片断是为Point类定义了一个叫做hasListeners的方法。

13. Any use of a nonstatic data or function member of the enclosing class requires that it be done through a pointer, reference, or object of the enclosing class.

外围类的非静态数据或函数成员的任何使用都要求通过外围类的指针、引用或对象进行。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值