You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,12 @@
179
179
##Memento
180
180
**Intent:** Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later.
* a snapshot of an object's state must be saved so that it can be restored to that state later, and
186
+
* a direct interface to obtaining the state would expose implementation details and break the object's encapsulation
187
+
182
188
##Observer
183
189
**Intent:** Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
0 commit comments