D
deancoo
I'm having some trouble with a couple of classes I've created (base and
derived). I had defined a function in a derived class, and then overloaded
that function name in a class derived from the first derived class. Now I
need to store objects instantiated from these classes (excluding the base
class) in a container. The container is defined to hold objects of the base
class type. So far so good, however, when it comes time to use the above
described member functions, the compiler complains about them not being
defined. Fare enough, the prototype is missing from the base class. I'm
not sure how to approach the problem. I can't use a virtual override in the
base class because the functions have different parameters, so what can I do
short of redesigning the whole thing?
Thanks,
d
derived). I had defined a function in a derived class, and then overloaded
that function name in a class derived from the first derived class. Now I
need to store objects instantiated from these classes (excluding the base
class) in a container. The container is defined to hold objects of the base
class type. So far so good, however, when it comes time to use the above
described member functions, the compiler complains about them not being
defined. Fare enough, the prototype is missing from the base class. I'm
not sure how to approach the problem. I can't use a virtual override in the
base class because the functions have different parameters, so what can I do
short of redesigning the whole thing?
Thanks,
d