# designPatterns **Repository Path**: wyndem/designPatterns ## Basic Information - **Project Name**: designPatterns - **Description**: 设计模式 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-01-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # designPatterns #### 介绍 设计模式,一个非常简单的设计模式集合,偶尔练练手还是不错的 #### 目录 observerPattern 观察者模式 strategyPattern 策略模式 decoratorPattern 装饰者模式 factoryPattern 工厂模式 singleton 单例模式 #### 设计模式原则(来自--Head First 设计模式): - 封装变化(把变化的部分封装起来) - 多用组合,少用继承 - 针对接口编程,不针对实现编程 - 为交互对象之间的松耦合设计而努力 - 对扩展开发,对修改关闭