ENGLISH DICTIONARY

Mixin

Definition, Meaning & Examples

Pronunciation /ˈmɪksɪn/ · Part of speech noun

Quick meaning: Mixin is a noun meaning (object-oriented programming) An uninstantiable class that provides functionality to be inherited by a subclass.

Meaning

(object-oriented programming) An uninstantiable class that provides functionality to be inherited by a subclass.

Example Sentences

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.

Word Forms

Related Words

Related dictionary entries include mix-in, inheritance, metaclass, wrapper, supermethod, trait.

Related Dictionary Tools

Sources & Attribution

FreeDictionaryAPI.com / Wiktionary · Original source · CC BY-SA 4.0

Dictionary data is provided by FreeDictionaryAPI.com and sourced from Wiktionary under its stated license.