D
David
Hi,
I'm writing some code at the moment where I would like to make use of
inheritance from a base class to avoid lots of re-coding in various child
classes sharing very similar interfaces. However I wish to disallow the
ability for a user to refer these sub-classes using base class pointers.
I'm wondering if there are any available techniques in C++ which can allow
this? Appreciate any help you can provide.
Thanks,
David
I'm writing some code at the moment where I would like to make use of
inheritance from a base class to avoid lots of re-coding in various child
classes sharing very similar interfaces. However I wish to disallow the
ability for a user to refer these sub-classes using base class pointers.
I'm wondering if there are any available techniques in C++ which can allow
this? Appreciate any help you can provide.
Thanks,
David