Skip to content

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?