I have an abstract base class which acts as an interface.
I have two \"sets\" of derived classes, which implement half of the abstract class. ( one \"set\" defines t
It can be done, although it gives most the shivers.
You need to use "virtual inheritance", the syntax for which is something like
class AbsInit: public virtual AbsBase {...};
class AbsWork: public virtual AbsBase {...};
class NotAbsTotal: public AbsInit, public AbsWork {...};
Then you have to specify which function you want to use:
NotAbsTotal::work()
{
AbsInit::work_impl();
}
(UPDATED with correct syntax)