1.
参考资料
参考
参考资料:1.
原型模式的定义原型模式(Prototype pattern): Specify the kinds of objects to create using a prototypical instance,and crea
模式的介绍模式的定义Provide an interface for creating families of related or dependent objects without specifying their c
模式的介绍模式的定义Define an interface for creating an object,but let subclassed decide which class to instantiate.Factory
模式的介绍模式的定义Define the skeleton of an algorithm in an operation,deferring some steps to subclassed.Templat
模式的介绍模式的定义建造者模式(Builder Pattern)也叫生成器模式,定义如下: Seperate the construction of a complex object from its represention s
模式的介绍模式的定义策略模式(Strategy Pattern)是一种比较简单的模式,定义如下: Define a family of algorithms, encapsulate each one, and make them interchang
创建类模式主要关注:对象的创建过程,将对象的创建过程进行封装,使客户端直接得到对象,而不用去关心创建对象的细节。
模式的介绍模式的定义观察者模式(Observer Pattern)也叫发布订阅模式(Publish\subscribe),定义如下: Define a one-to-many dependency between
UML简介Unified Modeling Language (UML)又称统一建模语言或标准建模语言。类:从上到下分为三部分,分别是、参数缺省值和操作的返回值的类
模式的定义组合模式(Composite Pattern)定义如下: Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat ind
模式的定义命令模式是一个高内聚的模式,定义如下:Encapsulate a request as an object,thereby letting you parameterize clients with differe
模式的定义状态模式定义如下:Allow an object to alter its behavior when its internal state changes. The object
模式的定义代理模式(Proxy Pattern)也叫做委托模式,定义如下:Provide a surrogate or placeholder for another object to control access
模式的定义中介者模式定义如下:Define an object that encapsulates how a set of objects interact.Mediator promotes loose coupling by keeping
模式的定义装饰模式的定义:Attach additional responsibilities to an object dynamically keeping the same interface.Decorators provide a fle
模式的定义责任链模式定义如下:Avoid coupling the sender of a request to its receiver by giving more than one object a chance to ha
模式的定义适配器模式(Adapter Pattern)定义如下:Convert the interface of a class into another interface clients expect.Adapter lets classes work toge
模式的定义迭代器模式定义:Provide a way to access the elements of an aggregate object sequentially without exposing it
模式的定义备忘录模式定义如下:Without violating encapsulation,capture and externalize an object’s inter
模式的定义访问者模式的定义如下:Represent an operation to be performed on the elements of an object structur
模式的定义享元模式(Flyweight Pattern)是沲技术的重要实现方式,其定义如下:Use sharing to support large numbers of fine-gr
模式的定义桥梁模式是一个比较简单的模式,其定义如下:Decouple an abstraction from ist implementation so that the two ca
模式的定义解释器模式(Pattern Interpreter)是一种按照规定语法进行解析的方案,在现在项目中使用较少。其定义如下:Given a la
模式的定义空对象模式(Null Object Pattern)定义如下:Provide an object as a surrogate for the lack of an object of a given type. The Null Oehavior, hiding the details from its col
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号