`
brxonline
  • 浏览: 61681 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论
文章列表

备忘录模式

Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later.

中介者模式

Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.
Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.

解释器模式

Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.

命令模式

Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.

责任链模式

Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.

装饰模式

Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality

组合模式

Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.

桥梁模式

Decouple an abstraction from its implementation so that the two can vary independently.

适配器模式

Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces

单例模式

Ensure a class has only one instance and provide a global point of access to it.

原型模式

...
定义:提供一个创建一系列相关或相互依赖对象的接口,而无需指定他们的具体类。(Provide an interface for creating families of related or dependent objects without specifying their concrete classes. )
1、Java有没有goto 答:java中的保留字,现在没有在java中使用 2、Overload和Override的区别。Overloaded的方法是否可以改变返回值的类型 答:方法的重写Overriding和重载Overloading是Java多态性的不同表现。重写Overriding是父类与子类之间多态性的一种表现,重载Overloading是一个类中多态性的一种表现。如果在子类中定义某方法与其父类有相同的名称和参数,我们说该方法被重写 (Overriding)。子类的对象使用这个方法时,将调用子类中的定义,对它而言,父类中的定义如同被"屏蔽"了。如果在一个类中定义了多 ...
By Jim Stevenson Elmont, NY 07 June 2008   Kentucky Derby and Preakness winner Big Brown runs Saturday in New York in his bid to become horse racing's first so-called Triple Crown winner in 30 years. As VOA's Jim Stevenson reports from Belmont Park, final preparations have been made for the bi ...
Global site tag (gtag.js) - Google Analytics