I’m so surprised to see the difference in the Exercise and the Implementation of the memento pattern. This really doesn’t seem right. I haven’t continue the rest of the course yet; however, I wanted to sure this here:
The exercise said to make a method on the
Editor class to then say
However this is the Implementation:
Is this actually how this pattern is used in a class?