1、Interator一个一个遍历。
2、Adapter适配器,可以使用“继承”和“委托”来填补不同接口(API)的两个类之间的缝隙。
3、Template父类中定义处理流程的框架,在子类中实现具体处理。
4、Factory将实例的生成交给子类
-
Notifications
You must be signed in to change notification settings - Fork 0
lmmProject/design_pattern
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
设计模式学习
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published