Design Pattern

Memento Design Pattern by Oladipo Timothy

memento design pattern

The Memento pattern is best used whenever we want to keep track of changes to the state of an object. Most time in a chess game or perhaps in an application that undo-s. We want to be able to go the previous state of an object easily. The easiest solution that comes to mind is keeping such changes in a …

Read More »