设计模式总结

1.概述

设计模式的类型

根据设计模式的参考书 Design Patterns - Elements of Reusable Object-Oriented Software(中文译名:设计模式 - 可复用的面向对象软件元素) 中所提到的,总共有 23 种设计模式。这些模式可以分为三大类:创建型模式(Creational Patterns)、结构型模式(Structural Patterns)、行为型模式(Behavioral Patterns)。当然,我们还会讨论另一类设计模式:J2EE 设计模式。

 

 

 

 

 

设计模式六大原则

 

 

 =========================================================================================================

 

图解依赖倒置原则:

资料:https://blog.csdn.net/zhengzhb/article/details/7289269

posted @ 2018-10-17 18:46  hh9515  阅读(189)  评论(0编辑  收藏  举报