Wednesday, August 29, 2012

Memento design pattern tutorial

When you develop an application you might want some objects to save and restore their states. One way to do that is to send the initial object state to another object. But next problems occur:
  • initial object structure becomes revealed
  • another object might change received state
It is much better to save object state with special container object based on Memento design pattern.

This post is available in Russian.