So I've been trying to get my head around this for weeks. I understand that structs are value types, and that classes are reference types. Where I get confused is the differences in behavior between the two.
For example: If I have a bag of potatoes, and each potato is a different size, shape, and weight... The bag would be a 'class' / reference type The potatoes would be a 'struct' / value type
Can my potatoes be a class, or do they have to be a struct as the values contained within are different?
Basically, the answer to that question will clear everything up for me.
Thank you!