I would do it this way:
1) create a class that has data that is common
to all of your "subsets", like someproperty
2) include an enumeration called something like "data type"
3) include a property called something like "subdata" that is an object
4) create a class with just bigvalue and largecompany (datatype = 1)
5) create a class with just smallvalue (datatype = 2)
6) when you instantiate the class from step 1, set the datatype,
instantiate the subclass that you want to use, and set the property
from #3 (subdata) = that object
Robin S.
GoldMail, Inc.
--------------------------
"Robert Bravery" <me@u.comwrote in message
news:C7**********************************@microsof t.com...
Hi all,
How do I aproach this.
I need to have a class that has different popeties based on a givien value
eg
if the company value >35
then myclass should have theses two properties
bigvalue
lagecompany
someproperty
else the properties should be
smalvalue
someproperty
Thanks
Robert