Programming question of the week ;)

M-.-n EMAIL HIDDEN
Tue Apr 14 21:49:34 CEST 2009



Do a list of CD *. Because you don't have more than one type of object so
far ;)

It is not because your Classes share functionality & properties that you
have to store those all in the same place as being the same thing. Do a
separate container for each of your classes derived from Item. 

See the inheritance process more to share functionalities and, at the high
level, treat each individual class as what it is.

M.

>How do you solve this? It doesn't make sense to do virtual function
>s in class Item for every possible set-get function in the children
classes.





More information about the music-bar mailing list