A mixin is a special kind of multiple inheritance. There are two main situations where mixins are used:
You want to provide a lot of optional features for a class.
You want to use one particular feature in a lot of different classes.
Interviews2 answers
What is a mixin class?
2 Answers
Rajanikant HawaldarPosted Sep 11, 2022, 5:15 AM EDT
A class that provides some but not all of the implementation for a virtual base class is often called mixin. Derivation done just for the purpose of redefining the virtual functions in the base classes is often called mixin inheritance. Mixin classes typically don't share common bases..
its_yogeshPosted Jul 13, 2006, 3:08 AM EDT
