Copying an object with a list inside
A Student holds a List<String> subjects. A copy constructor assigns
this.subjects = other.subjects.
What happens when the copy's subject list is modified?
A Student holds a List<String> subjects. A copy constructor assigns
this.subjects = other.subjects.
What happens when the copy's subject list is modified?