I\'m not exactly sure the terminology to use, but here\'s my example:
class Base {
public:
virtual void test() = 0;
};
class Mixin {
public:
virtual
You cannot have a class override an unrelated class's virtual function. There are different things you could do to work around this. You can make the mixin a template that derives (virtually) from the type argument and use it as class Example : public virtual Base, Mixin, or you can add code in the final class to dispatch to the mixing:
void Derived::test() { Mixin::test(); }