一句话Design Pattern:Bridge
来源:互联网 发布:淘宝客服数据在哪看 编辑:程序博客网 时间:2024/06/02 01:47
定义:The bridge pattern is a design pattern used in software engineering which is meant to "decouple an abstraction from its implementation so that the two can vary independently". The bridge uses encapsulation, aggregation, and can use inheritance to separate responsibilities into different classes.
一句话:让implementation的interface变成has-a,implementation的真正实现在创建时绑定。
类比:高级的strategy,不仅实现可以变化,interface也能变。
0 0
- 一句话Design Pattern:Bridge
- 一句话Design Pattern:Strategy
- 一句话Design Pattern:Observer
- 一句话Design Pattern:Decorator
- 一句话Design Pattern:Factory
- 一句话Design Pattern:Singleton
- 一句话Design Pattern:Command
- 一句话Design Pattern:Adapter
- 一句话Design Pattern:Facade
- Design Pattern 14-bridge
- Pattern Design--Bridge
- Design Pattern: Bridge 模式
- Design Patterns - Bridge Pattern
- Bridge Design Pattern
- 我的“一句话Design Pattern”
- 一句话Design Pattern:Abstract Factory
- 一句话Design Pattern:Template Method
- Design Pattern - Bridge(C#)
- Python 3.3 Tutorial Notes - 6:Error and Exception
- Python 3.3 Tutorial Notes - 7:Class
- Python 3.3 Tutorial Notes - 8:Standard Libraries - Briefly
- 贪心法
- 动态规划
- 一句话Design Pattern:Bridge
- LeetCode趣题
- 资源收藏贴
- 单链表的基本操作-数据结构
- 小马哥----高仿小米note主板H79 型号 刷机拆机主板图与开机界面图 新版机型 警惕
- webdriver cookie 处理 selenium_python
- webservice的简单理解
- leetcode笔记:Single Number
- 只含0、1的串进行排序,可任意交换位置,最小交换次数