K
Kat
I have created a class for a list of products, not too difficult actually!
I've created properties for product name, size, etc. However, each product
may have one or more categories they fit in to, such as a toothpaste may go
into grocery items and it may go under drugstore items. Do I create a
separate class for these categories, and link that class like you would the
database, a one to many? How else would I handle this, maybe a property as
a list would be better, can I do that?
I've created properties for product name, size, etc. However, each product
may have one or more categories they fit in to, such as a toothpaste may go
into grocery items and it may go under drugstore items. Do I create a
separate class for these categories, and link that class like you would the
database, a one to many? How else would I handle this, maybe a property as
a list would be better, can I do that?