Displaying 1 result from an estimated 1 matches for "softproduct".
2006 May 14
3
Help with domain model/database design
...hat might be
tricky is that we''ll be selling both hard and soft goods (e.g. CDs
and MP3s). I want both types of goods to be able to be added to the
same cart.
So here is my approach so far. I''ve created a class called Product
which can contain a reference to one of either SoftProduct or
HardProduct. These in turn refer/relate to a couple additional
dependent classes, depending on whether we are dealing with a hard of
soft good. So whether the Product contains a SoftProduct or a
HardProduct, the cart mechanism remains relatively simple because it
is just a matter addin...