go top

mixin

  • n. (计算机)混入,混入类(亦作 mix-in):面向对象编程中可被其他类组合或引入,用于在不通过继承的情况下提供方法或行为、实现代码复用的类或模块;(CSS)混合指令:Sass 等样式预处理器中可复用、常带参数的样式代码块。

英英释义

Mixin

  • abstract: In object-oriented programming languages, a mixin is a class which contains a combination of methods from other classes. How such combination is done depends on language, but it is not by inheritance.

以上来源于: WordNet

双语例句

  • A mixin can implement multiple interfaces.

    一个mixin可以实现多个接口

    youdao

  • The callback logic is a good example of a mixin.

    这个回调逻辑就是mixin一个不错例子

    youdao

  • It turns out that there is — it's known as a mixin.

    答案有的—就是mixin

    youdao

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

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

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