Skip to content

Commit

Permalink
Small content update
Browse files Browse the repository at this point in the history
  • Loading branch information
qizhengzhong11 committed Nov 18, 2020
1 parent 600256b commit 5ee7c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/设计模式 - 备忘录.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

- Originator原始对象
- Caretaker负责保存好备忘录
- Memento备忘录存储原始对象的的状态备忘录实际上有两个接口一个是提供给 Caretaker 的窄接口它只能将备忘录传递给其它对象一个是提供给 Originator 的宽接口允许它访问到先前状态所需的所有数据理想情况是只允许 Originator 访问本备忘录的内部状态
- Memento备忘录存储原始对象的状态备忘录实际上有两个接口一个是提供给 Caretaker 的窄接口它只能将备忘录传递给其它对象一个是提供给 Originator 的宽接口允许它访问到先前状态所需的所有数据理想情况是只允许 Originator 访问本备忘录的内部状态

<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/50678f34-694f-45a4-91c6-34d985c83fee.png"/> </div><br>

Expand Down

0 comments on commit 5ee7c7c

Please sign in to comment.