文件名称:Builder
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 108kb
- 下载次数:
- 0次
- 提 供 者:
- h**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
建造者模式编程,完整代码及运行结果截图
题目:
比如我们要通过一个汽车加工厂,组装一辆汽车;汽车由车头,车身,车尾3部分组成;它的基本组装步骤是:
组装车头
组装车身
组装车尾
不管被组装的是吉普车,卡车,还是公交车,它们都可以各自重新定义车头,车身与车尾的组装方法;而通过这些被重新定义的组装方法,通过相同的组装步骤就可以组装具有不同属性的各类汽车了。-Model builder program code and operating results capture the full title: for example we have to pass a car factory, assembling a car car from the front, body, rear 3 parts its basic assembly steps: assembly of the front body assembly Regardless of the rear assembly is being assembled jeeps, trucks, or buses, they can redefine their own front, rear body and the assembly method being redefined through the assembly of these methods, the assembly through the same steps can be assembled with different types of attributes cars.
题目:
比如我们要通过一个汽车加工厂,组装一辆汽车;汽车由车头,车身,车尾3部分组成;它的基本组装步骤是:
组装车头
组装车身
组装车尾
不管被组装的是吉普车,卡车,还是公交车,它们都可以各自重新定义车头,车身与车尾的组装方法;而通过这些被重新定义的组装方法,通过相同的组装步骤就可以组装具有不同属性的各类汽车了。-Model builder program code and operating results capture the full title: for example we have to pass a car factory, assembling a car car from the front, body, rear 3 parts its basic assembly steps: assembly of the front body assembly Regardless of the rear assembly is being assembled jeeps, trucks, or buses, they can redefine their own front, rear body and the assembly method being redefined through the assembly of these methods, the assembly through the same steps can be assembled with different types of attributes cars.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
建造者模式运行结果截图.png
ProduceCar\.classpath
..........\.project
..........\bin\Car.class
..........\...\CarBuilder.class
..........\...\CarDirector.class
..........\...\Client.class
..........\...\JeepBuilder.class
..........\src\Car.java
..........\...\CarBuilder.java
..........\...\CarDirector.java
..........\...\Client.java
..........\...\JeepBuilder.java
..........\bin
..........\src
ProduceCar
ProduceCar\.classpath
..........\.project
..........\bin\Car.class
..........\...\CarBuilder.class
..........\...\CarDirector.class
..........\...\Client.class
..........\...\JeepBuilder.class
..........\src\Car.java
..........\...\CarBuilder.java
..........\...\CarDirector.java
..........\...\Client.java
..........\...\JeepBuilder.java
..........\bin
..........\src
ProduceCar