Wysota, I think we've lost someone in the discussion here..Phlucious: I'm not a programmer by training, so I'm unfamiliar with some of the lingo.
Maybe my example with the bike and chamber didn't really fit the OP's original problem. That's the danger of an OP asking a generic question without a real-life example. And that's also the danger for a replier of using a counter-example that is taken in other directions then intended.
Anyway, what I mean to say is that OOP techniques aren't necessarely ALWAYS the best techniques for handling a problem. Especially for a novice. Can we agree on that ?
Thanks for the pointer to the 'visitor' pattern. Didn't know that, will study it in more detail.
Regards,
Marc
Bookmarks