• Affectionately known as "duck typing" (i.e., if it waddles like a duck and quacks like one, then it must be a duck!), polymorphism in Ruby is just a matter of matching method names.

    Ruby中的多态性被亲切地称为“ducktyping”(意思是,如果它走起路来像鸭子,叫起来也像鸭子,那么它一定是鸭子!),这种多态性只是对方法名进行匹配的问题。

    youdao

  • The duck hops off the stool and waddles out.

    鸭子跳下凳子,踱出酒吧。

    youdao

  • The duck hops off the stool and waddles out.

    鸭子跳下凳子,踱出酒吧。

    youdao

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

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

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