Expose subset of a class - design question
Posted
by
thanikkal
on Stack Overflow
See other posts from Stack Overflow
or by thanikkal
Published on 2011-03-09T05:51:15Z
Indexed on
2011/03/09
8:10 UTC
Read the original article
Hit count: 276
Suppose i have a product class with about close to 100 properties. Now for some operations (Say tax calculation) i dont really need this bulky product type, rather only a subset that has price related properties. I am not sure if i should create different snap shots(class) of products that just has the properties that i am interested in. what would be the ideal approach so that i don't unnecessarily pass around unsought fluff?
Thanks in advance.
© Stack Overflow or respective owner