接口隔离原则(ISP - Interface Segregation Principle)
来源:互联网 发布:南昌网络教育 编辑:程序博客网 时间:2024/05/17 23:33
某些类的接口,可以分解成多组方法,每组方法都服务于不同的客户。
当客户使用这个类时,那么将会导入他们从来不会使用的接口。
如果其他客户需要修改这个类时,也将影响到其他无关的客户。
我们应该避免这种耦合。
方法:
1、使用委托分离接口。
2、使用多重继承(实现)。
0 0
- ISP简介(ISP--Interface Segregation Principle)接口隔离原则
- ISP(Interface Segregation Principle),接口隔离原则
- ISP( Interface Segregation Principle)接口隔离原则
- 接口隔离原则(Interface Segregation Principle,ISP)
- 接口隔离原则(ISP--Interface Segregation Principle)
- 接口隔离原则(ISP--Interface Segregation Principle)
- 接口隔离原则(ISP - Interface Segregation Principle)
- 接口隔离原则(Interface Segregation Principle)
- 接口隔离原则(Interface Segregation Principle)
- 接口隔离原则(Interface segregation principle)
- 设计模式六大原则(4):接口隔离原则ISP(Interface Segregation Principle)
- 设计模式六大原则——接口隔离原则(ISP,Interface Segregation Principle)
- 接口隔离ISP--Interface Segregation Principle
- 设计原则-接口隔离原则(Interface Segregation Principle)
- 软件设计原则(五)接口隔离原则 -Interface Segregation Principle
- 接口隔离原则(Interface Segregation Principle)
- 接口隔离原则(Interface Segregation Principle)
- 接口隔离原则【Interface Segregation Principle】
- Mac OSX 快捷键&命令行
- Struts2 Junit测试
- git中的版本库,暂存区和工作区
- 安装cocoapods遇到的问题总结
- 十一月基本规划
- 接口隔离原则(ISP - Interface Segregation Principle)
- 谈谈推荐系统(一)什么是推荐系统
- IntelliJ IDEA 注册码(phpstorm等IDE)
- DAY19:leetcode #39 Combination Sum
- 大师带你了解TCP基本功之滑动窗口(1)
- sql语句的打印机获取字段
- mathNet基础用法
- 解决手机浏览器和微信中select中border:none;无用和去掉小三角
- 自定义一个进度条为圆角的progressbar