设计模式
来源:互联网 发布:平板电脑office软件 编辑:程序博客网 时间:2024/06/11 22:54
prototype pattern : class implements clonable
创建对象无需指导对象详细的构建过程,只需根据传进来的对象拷贝一个对象原型。
builder pattern: 是为了将构建复杂对象的过程和它的部件解耦.注意: 是解耦过程和部件.
builder :包括各个组件构建的过程
director:包括复杂对象的构建(复杂对象包括很多部件)
adapter:为了使一个接口拥有两个接口的接口,使用继承或者实现借口和聚集或者组合
class adapter extends or implements target{
adaptee at = new adaptee();
}
创建对象无需指导对象详细的构建过程,只需根据传进来的对象拷贝一个对象原型。
builder pattern: 是为了将构建复杂对象的过程和它的部件解耦.注意: 是解耦过程和部件.
builder :包括各个组件构建的过程
director:包括复杂对象的构建(复杂对象包括很多部件)
adapter:为了使一个接口拥有两个接口的接口,使用继承或者实现借口和聚集或者组合
class adapter extends or implements target{
adaptee at = new adaptee();
}
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式~~~~~~~~~~
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 设计模式
- 情场老手的识女宝典
- 成功的后知后觉者
- something learnt in last week
- EJb sessionBean
- web application:struts(view),spring
- 设计模式
- learn struts 1.1 deeply
- openprint project
- 使用struts有感!
- javascript opener
- 一生受用不尽的经验
- 办公室的高效原则
- 今天租房子有感
- 认识一个在英国的朋友