N
notme
Supposing I have two classes:
class UIControl1 : public BaseControl1 {}
class UIControl2 : public BaseControl2 {}
where both base classes are not related between them.
Then I'd like to -depending the user preference- use one of
those controls. That is, I have to do this at runtime, depending
on some flag set by the user of the program. Is there any way
to relate these two classes? If they derived from the same (or
related) base, then I would easily use that base class pointer,
without worrying which class I'm using. But in this case, what
can I do?
TIA
class UIControl1 : public BaseControl1 {}
class UIControl2 : public BaseControl2 {}
where both base classes are not related between them.
Then I'd like to -depending the user preference- use one of
those controls. That is, I have to do this at runtime, depending
on some flag set by the user of the program. Is there any way
to relate these two classes? If they derived from the same (or
related) base, then I would easily use that base class pointer,
without worrying which class I'm using. But in this case, what
can I do?
TIA