Multiple Inheritance from two derived classes
It looks like you want to do virtual inheritance. Whether that turns out to actually be a good idea is another question, but here’s how you do it: class AbsBase {…}; class AbsInit: public virtual AbsBase {…}; class AbsWork: public virtual AbsBase {…}; class NotAbsTotal: public AbsInit, public AbsWork {…}; Basically, the default, non-virtual multiple … Read more