Mixin
Noun · Development
Definitions
A class or module that provides methods to other classes through inclusion rather than inheritance, allowing horizontal code reuse without the constraints of a strict class hierarchy.
In plain English: A chunk of reusable code you can plug into any class to give it extra abilities, without making it inherit from a specific parent.
Example: "Add the Serializable mixin and your class instantly knows how to convert itself to JSON."