![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设计模式
onlinebrx
这个作者很懒,什么都没留下…
展开
-
抽象工厂模式
[img]http://dl.iteye.com/upload/attachment/227324/f368fbe4-9fe0-3e50-b44b-001e9db21952.png[/img]定义:提供一个创建一系列相关或相互依赖对象的接口,而无需指定他们的具体类。(Provide an interface for creating families of related or depen...2010-03-31 14:46:20 · 50 阅读 · 0 评论 -
观察者模式
[img]http://dl.iteye.com/upload/attachment/269570/b9ee5099-cf97-373a-bd29-14ee34ca47fa.png[/img]Define a one-to-many dependency between objects so that when one object changes state, all its depen...原创 2010-06-27 22:09:54 · 83 阅读 · 0 评论 -
备忘录模式
[img]http://dl.iteye.com/upload/attachment/260432/6124e75a-f518-3e99-b786-f1f285cdbb6f.png[/img]Without violating encapsulation, capture and externalize an object's internal state so that the ob...原创 2010-06-06 20:44:22 · 70 阅读 · 0 评论 -
中介者模式
[img]http://dl.iteye.com/upload/attachment/260423/7db0f907-fa26-3327-8369-f15c7e60c2b4.png[/img]Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling...原创 2010-06-06 20:18:00 · 88 阅读 · 0 评论 -
迭代器模式
[img]http://dl.iteye.com/upload/attachment/257220/7b7f00e7-2b64-33d4-a8c0-30d8d6c21159.png[/img] Provide a way to access the elements of an aggregate object sequentially without exposing its under...原创 2010-05-30 14:47:23 · 67 阅读 · 0 评论 -
解释器模式
[img]http://dl.iteye.com/upload/attachment/257218/5818ea4d-007c-3dff-9e27-6bd68ef62cbe.png[/img]Given a language, define a representation for its grammar along with an interpreter that uses the re...原创 2010-05-30 14:33:59 · 93 阅读 · 0 评论 -
命令模式
[img]http://dl.iteye.com/upload/attachment/250444/ab361d5e-979d-3b47-9aaa-85f214cacacc.png[/img] Encapsulate a request as an object, thereby letting you parameterize clients with different request...原创 2010-05-16 21:12:16 · 57 阅读 · 0 评论 -
责任链模式
[img]http://dl.iteye.com/upload/attachment/250430/4ae43fc9-5d83-3ece-a2e0-904229eecc9f.png[/img]Avoid coupling the sender of a request to its receiver by giving more than one object a chance to ha...原创 2010-05-16 20:49:45 · 90 阅读 · 0 评论 -
装饰模式
[img]http://dl.iteye.com/upload/attachment/244154/a7a787c2-2151-3b5b-a1b0-e0bb9b279d68.png[/img]Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternati...2010-05-04 14:00:44 · 52 阅读 · 0 评论 -
组合模式
[img]http://dl.iteye.com/upload/attachment/244148/7c643938-81e7-3efe-b8b6-cae74a152201.png[/img]Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients tre...2010-05-04 13:46:03 · 67 阅读 · 0 评论 -
桥梁模式
[img]http://dl.iteye.com/upload/attachment/243998/7442eea6-3785-3db5-9be5-39e2047b42ba.png[/img]Decouple an abstraction from its implementation so that the two can vary independently.2010-05-03 22:19:05 · 76 阅读 · 0 评论 -
适配器模式
[img]http://dl.iteye.com/upload/attachment/243984/96034d37-6559-3b0a-b014-777483cd9381.png[/img] Convert the interface of a class into another interface clients expect. Adapter lets classes work t...2010-05-03 22:06:31 · 73 阅读 · 0 评论 -
单例模式
[img]http://dl.iteye.com/upload/attachment/239367/35165154-89de-39a2-afb4-02b512de5406.png[/img]Ensure a class has only one instance and provide a global point of access to it.2010-04-24 12:47:56 · 77 阅读 · 0 评论 -
原型模式
[img]http://dl.iteye.com/upload/attachment/235897/6689ba4b-d897-336d-bcfe-892933fd9d28.png[/img]2010-04-17 15:12:05 · 94 阅读 · 0 评论 -
状态模式
[img]http://dl.iteye.com/upload/attachment/269572/785d09e9-7592-3657-9ab6-2cafb3538794.png[/img]Allow an object to alter its behavior when its internal state changes. The object will appear to cha...原创 2010-06-27 22:10:56 · 70 阅读 · 0 评论