N
Neils Christoffersen
Hey Group,
I have an abstract base class and four child classes that inherit from it.
All child classes have a data member called _changeAmount. In two class
this member is an int and in the other two it is a float.
I'd like to somehow move _changeAmount to the base class, because all the
child operations that use it are the same. I know this would be simple to
do if each child used the same data type, but I'm not sure how to go about
it seeing that they are not the same.
How can I accomplish this?
Thanks in advance,
Neils Christoffersen
I have an abstract base class and four child classes that inherit from it.
All child classes have a data member called _changeAmount. In two class
this member is an int and in the other two it is a float.
I'd like to somehow move _changeAmount to the base class, because all the
child operations that use it are the same. I know this would be simple to
do if each child used the same data type, but I'm not sure how to go about
it seeing that they are not the same.
How can I accomplish this?
Thanks in advance,
Neils Christoffersen