go top

anonymous inner class

网络释义

  匿名内部类

匿名内部类Anonymous Inner Class):没有类名称的局部内部类;匿名内部类会隐式地继承一个父类或实现一个接口。

基于921个网页-相关网页

  匿名外部类

2、Anonymous Inner Class (匿名外部类)是否可以extends(经受)其它类,是否可以implements(告终)interfgenius(接口)

基于40个网页-相关网页

  匿名类

...race syntax)真乱花渐欲迷人眼其实就匿名类加初始块该文解释:第一层括弧 实际定义了一个内部匿名类Anonymous Inner Class)第二层括弧 实际上一个实例初始化块 (instance initializer block)这个块内部匿名类构造时被执行

基于36个网页-相关网页

  匿名内部类别

实务上比较少看到在方法中定义具名的内部类别,倒很常看到方法中定义匿名内部类别Anonymous inner class)并直接实例化,这跟类别继承或介面实作有关,以下先看一下语法,细节留到谈到继承与介面时再作讨论:

基于20个网页-相关网页

短语

and anonymous inner class 匿名内部类

有道翻译

anonymous inner class

匿名内部类

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • Instance initializers allow you to execute construction code for an anonymous inner class.

    实例初始化器允许一个匿名内部执行构造代码

    youdao

  • For example, only final object references from the outer class are invokable within the body of the anonymous inner class.

    例如匿名内联主体只能调用外部中的 final 对象引用

    youdao

  • Here, the ActionListener implementation is defined in place, as an anonymous inner class, and directly attached to the button.

    这里ActionListener实现适时定义的,它定义一个匿名内部直接附加按钮

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定