So this is more of an "trying to understand" question, than a "I need a solution" question. For an assignment we were ask to create a List of products that have an itemNumber and a price, but only one of each, so no item with the same itemNumber. I figured I could create a set and that would get rid of the duplicates problem. But if I add a producta 1 , 4.99 and a productb 1 , 2.99 , both products are added.
Does that mean, that the set determines these products to be different b/c they have a different price and therefore can be added to the set?