# headfirst-study **Repository Path**: osBoss/headfirst-study ## Basic Information - **Project Name**: headfirst-study - **Description**: headfirst 设计模式 学习 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-08-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #设计模式: - 策略模式 可以动态改变行为,委托对象,组合使用接口,而不需要更改原来的代码 - 观察者模式和发布订阅一样. 观察者有2个对象->主题(被观察者)/观察 - 装饰器 其实就是通过不断的继承形成新的包装类 - 单例 保证每一个对象只有一个实例 - 封装 将请求调用者和请求接收者进行解耦