您的位置:首页 > 其它

Head First Design Patterns(读书笔记)

2007-04-13 21:29 387 查看
Design Principles:

Identify the aspets of your application that vary and seperate them from what stays the same.
Take what varies and "Ecapsulate" it so it won't affect the rest of your code.
Program to an interface, not an implementation.
Favor composition over inheritance.
The picture followed is The Strategy Pattern:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: