auto commit

This commit is contained in:
CyC2018
2019-12-06 00:29:51 +08:00
parent 06199c5364
commit 8ca2b6426f
115 changed files with 522 additions and 522 deletions

View File

@ -11,7 +11,7 @@
- Strategy 接口定义了一个算法族它们都实现了 behavior() 方法
- Context 是使用到该算法族的类其中的 doSomething() 方法会调用 behavior()setStrategy(Strategy) 方法可以动态地改变 strategy 对象也就是说能动态地改变 Context 所使用的算法
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/cd1be8c2-755a-4a66-ad92-2e30f8f47922.png"/> </div><br>
<div align="center"> <img src="pics/cd1be8c2-755a-4a66-ad92-2e30f8f47922.png"/> </div><br>
### 与状态模式的比较