Tag: memento

Memento Design Pattern

Memento Design Pattern with Java

What if we need to keep many different states of an object? We could keep the information inside objects with a lot of setters and make the code a big mess. This would indeed work but it would be awful to change anything in the future. As we...