请输入您要查询的英文单词:

 

单词 outer class
释义
outer class
  • 简明释义
  • 外部类:在嵌套类结构中,位于外层的类。
  • 网络释义
  • 1

    ?外部类

    静态内部类(Static Inner Classes) 如果一个内部类不需要对它的外部类outer class)进行引用,那个你可以把它声明为static。当一个类中的静态方法调用一个内部类时,那么这个内部类必须是静态内部类。

  • 2

    ?宿主类

    除非是在宿主类(outer class)的非static方法中,否则无论我们在哪里创建内部类的对象都必须用OutClassName.InnerClassName的形式来表示这个对象的类型。

短语
  • 双语例句
  • 1
    Note that when a class is nested, it has access to the outer class's members.
    请注意,当一个类是嵌套类的时候,它可以访问其外层类的成员。
  • 2
    Field in the inner class hides a field with the same name in the outer class.
    内部类中的域在外部类中覆盖了一个相同名字的域。
  • 3
    For example, only final object references from the outer class are invokable within the body of the anonymous inner class.
    例如,在匿名内联类的主体中,只能调用外部类中的 final 对象引用。
随便看

 

英汉双解词典包含3185865条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2022 Newdu.com All Rights Reserved
更新时间:2025/3/1 17:40:49