Mixin class

From HomoExcelsior

Jump to: navigation, search

In object-oriented programming, a mixin class is one which is designed specifically to be blended with other classes through multiple inheritance. The mixin simply adds specific functionality through a few additional methods and is not meant to be instantiated on it's own.

Mixin classes will often be named as an adjective ending in -able or -ible. For example, Freezable, Viewable, Storable, Webable.

See also: Object-Oriented Design OOD, Object-Oriented Programming OOP, Virtual Base Classes, Multiple Inheritance, [[C++]], Java, Perl, Python, smalltalk.




User groups