NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Inheritance is not the answer. (Score:2)
There's no reason that any of those things should have an Is-A relationship. You need a cart that contains other disti
Re: (Score:1)
That's not exactly true in .NET. The Cart whould returns a strongly type collection of CartItems, not a mishmash of Object that then have to be inspect just to see what they are. And I don't understand that statement about no reason for IS-A. A CartItem IS a part...period. 100% percent of the time. You can't buy anything that's not a part...but I digress...
Well sure, you coul
Re:Inheritance is not the answer. (Score:2)
Like I said, inheritance is beat into people's heads, so they think in terms of it when in reality the world doesn't operate that way.
Reply to This
Parent