摘要:
以下文章来自博客园,觉得比较好,就转载过来了,,,大家看下基本原则 封装变化Encapsulate what varies. 面向接口变成而不是实现 Code to an interface rather than to an implementation. 优先使用组合而非继承 Favor Composition Over Inheritance SRP: The single responsi... 阅读全文
posted @ 2008-04-25 09:48 hoory 阅读(1069) 评论(0) 推荐(0) 编辑