Chad Z. Hower aka Kudzu <(E-Mail Removed)> wrote:
> > instantiate it and use its members? Much more--I rarely even use
> > inheritance--seems like spaghetti code to me.
>
> Ouch - inheritance is vital to any OO design.
I disagree with that pretty strongly. I tend to aggregate rather than
using inheritance. It's useful occasionally, and where it *is* useful
it's absolutely invaluable. However, writing classes which should be
inherited from - especially outside your own assembly - requires a lot
more work to do it properly, and your implementation can end up being a
lot less flexible, as you need to stick to the same rules about which
method calls which other method etc.
There's a good article about this somewhere - I wish I could find it...
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too