• 如果这个匿名作为一个内部单独放置,那么清单1中的代码简洁很多

    The code in Listing 1 would be much neater if the anonymous class was placed separately as an inner class.

    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

  • 以前可能提到过,经常看到定义匿名内部asynccallback

    As I probably mentioned before, you'll frequently see AsyncCallback classes defined as anonymous inner classes.

    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

  • addOrderFrom()方法成为公共匿名内部创建定义,将两个工作项目包装起来。

    The addOrderFrom() method collapses to the definition of an anonymous inner class creation of the command class, wrapping the two work items.

    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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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