【代码积累】factory pattern without reflection
来源:互联网 发布:js form ajax 提交 编辑:程序博客网 时间:2024/06/04 18:38
public class FactoryWithoutReflection {public static void main(String[] args) {// TODO Auto-generated method stubCar car = null;Plane plane = null;Car.register2Factory();Plane.register2Factory();car = (Car)(BigthingFactory.getInstance().createBigThing("Car"));car.print();car = (Car)BigthingFactory.getInstance().createBigThing("Car");car.print();plane = (Plane)BigthingFactory.getInstance().createBigThing("Plane");plane.print();}}
阅读全文
0 0
- 【代码积累】factory pattern without reflection
- 【代码积累】reflection study
- 【代码积累】replace constructor with factory method
- 【代码积累】replace constructor with factory
- simple water without reflection
- Factory Pattern
- Factory Pattern
- Factory Pattern
- Factory Pattern
- Factory Pattern
- Factory Pattern
- Factory Pattern
- Factory Pattern
- Factory Pattern
- Factory Pattern
- Factory pattern
- Factory Pattern
- Factory Pattern
- Android横竖屏切换不改变生命周期
- freemarker使用String模板进行渲染展示
- eclipse tomcat调试热部署
- intent用法
- Linux学习第九篇--linux文件查看
- 【代码积累】factory pattern without reflection
- 关于IE和其他的浏览器的缓存机制
- 关于NTKO将代码插入到光标处
- 圣杯式布局
- Android Studio生成Jni头文件的方法
- 数据流中的中位数(Java实现)
- 75. Sort Colors
- MyEclipse 2017配置Maven
- Mysql SQL Mode详解 tpshop修改NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION