I’m currently at Lecture #7.5 (Defining Many-to-Many Relationships). Here, Mosh has defined the User-Tag relationships using the Set interface stating that users won’t have duplicated tags and vice versa. However, previously while defining the User-Address relationship Mosh used the List interface.
I’m guessing that user won’t have duplicated addresses either, so can we use the Set interface in the User-Address relationship?
To sum up, I’m confused when do we use the List and the Set interface.