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

    这里,ActionListener实现是适时定义的,它定义为一个匿名内部类,并直接附加到按钮上。

    youdao

  • This restriction is lifted in Groovy; you can change the values of variables in a containing scope from within an anonymous inner class.

    Groovy则消除了这种限制,在Groovy中,匿名内部类可以修改外部的变量值。

    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

  • The only thing a class needs to be used this way is a default constructor (which allows you to create an anonymous inner class instance inheriting from your class).

    惟一需要以这种方式使用一个类的是一个默认构造函数(它允许您创建继承自类的一个匿名内部类)。

    youdao

  • 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

  • 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

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

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

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