mucsci-students/2021sp-420-Syrup

Momento cannot rely on shallow copies

Closed this issue · 0 comments

The UMLConstructor is a shallow copy -- you need to adopt something like the Cloneable interface (cough Prototype Design Pattern cough) in order to have Memento work as written.