2012年3月7日
摘要: 首先看看接口隔离原则的定义,有两种定义第一种:Clients should not be forced to depend upon interfaces that they don't use.(客户端不应该强行以来它不需要的接口)第二种:The dependency of one class to another one should depend on the smallest possible interface.(类间的依赖关系应该建立在最小的接口上)而这里的接口,却不仅仅指的是通过interface关键字定义的接口,接口分为2种:1、对象接口(Object Interfac 阅读全文
posted @ 2012-03-07 10:52 花郎V 阅读(3162) 评论(3) 推荐(1) 编辑