mixin
English
Alternative forms
Etymology
Pronunciation
- IPA(key): /ˈmɪksɪn/
Noun
mixin (plural mixins)
- (object-oriented programming) 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.
Synonyms
- abstract base class[1]
Related terms
- mix-in (food)
See also
References
- ^ Wikipedia contributors (15 May 2012), “Mixin”, in English Wikipedia[1], Wikimedia Foundation, revision 492684480: “Mixins are synonymous with abstract base classes.”