Design Pattern (Part 06) — Memento Design Pattern

  1. Caretaker- This class is used for safekeeping memento’s snapshot of states.
  2. Memento- The memento object stores the internal state of the Originator.
Class Diagram
Scenario concept Diagram
Class Diagram For this Scenario

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store