简单工厂模式

所属分类:Java编程
开发工具:Java
文件大小:7KB
下载次数:1
上传日期:2019-12-08 17:33:37
上 传 者洛天依00
说明:  读取键盘输入字符串,传入“hp”生产出惠普电脑并调用该电脑对象的start方法。传入“lenovo” 生产出联想电脑并调用该电脑对象的start方法。传入“asus” 生产出华硕电脑并调用该电脑对象的start方法,传入其他字符串都显示不能生成该品牌电脑。
(Read the keyboard input string, pass in "HP" to produce the HP computer and call the start method of the computer object. Pass in "Lenovo" to produce the Lenovo computer and call the start method of the computer object. Pass in "ASUS" to produce ASUS computer and call the start method of the computer object, and pass in other strings to show that the brand computer cannot be generated.)

文件列表:
简单工厂模式 (0, 2019-12-08)
简单工厂模式\.classpath (301, 2019-12-08)
简单工厂模式\.project (394, 2019-12-08)
简单工厂模式\.settings (0, 2019-12-08)
简单工厂模式\.settings\org.eclipse.jdt.core.prefs (598, 2019-12-08)
简单工厂模式\bin (0, 2019-12-08)
简单工厂模式\bin\简单工厂模式 (0, 2019-12-08)
简单工厂模式\bin\简单工厂模式\AsusComputer.class (572, 2019-12-08)
简单工厂模式\bin\简单工厂模式\Computer.class (307, 2019-12-08)
简单工厂模式\bin\简单工厂模式\ComputerFactory.class (1444, 2019-12-08)
简单工厂模式\bin\简单工厂模式\DellComputer.class (569, 2019-12-08)
简单工厂模式\bin\简单工厂模式\HpComputer.class (574, 2019-12-08)
简单工厂模式\bin\简单工厂模式\LenovoComputer.class (575, 2019-12-08)
简单工厂模式\bin\简单工厂模式\电脑启动.class (1138, 2019-12-08)
简单工厂模式\src (0, 2019-12-08)
简单工厂模式\src\简单工厂模式 (0, 2019-12-08)
简单工厂模式\src\简单工厂模式\电脑启动.java (1473, 2019-12-08)

近期下载者

相关文件


收藏者