mixin
发音
/ˈmɪksɪn/
词形变化
mixins
复数
mixins
别名
mix-in
释义与例句
n.
-
1.
An uninstantiable class that provides functionality to be inherited by a subclass.
计算机Traits are somewhat between an interface and a mixin, as an interface contains only method signatures, while a trait includes also the full method definitions; on the other side mixins include method definitions, but they can also carry state through attributes, while traits usually don't.
词源
Deverbal from mix in.
来源:wiktionary