• 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.

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

    youdao

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

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

    youdao

  • This is an improvement over having to write a class any time an anonymous inner class is needed and can help keep the code more self-documenting.

    相比于每个匿名内部对应一个类的做法来说,这种方式是个极大的改进同时使得代码可读性更好

    youdao

  • In fact, an anonymous inner class can't even extend a class and implement an interface at the same time.

    事实上匿名内部甚至不能同时扩展个类实现一个借口

    youdao

  • In fact, an anonymous inner class can't even extend a class and implement an interface at the same time.

    事实上匿名内部甚至不能同时扩展个类实现一个借口

    youdao

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

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

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