欢迎来到天天文库
浏览记录
ID:61835893
大小:1.20 MB
页数:9页
时间:2021-03-23
《面向对象系统分析与设计-03-工厂模式(2hours).ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、OOSystemAnalysis&Design【09_FactoryPattern】8/18/20211NeusoftComputerScienceandTechnologyDepartmentcopyrightEnjoypizza…8/18/20212NeusoftComputerScienceandTechnologyDepartmentcopyrightOurjobis:TodesignapizzaStore,whichcouldcreateapizzaobject.8/18/20213NeusoftComputerScienceandTechnologyDepartm
2、entcopyrightVersion1:simplefactory8/18/20214NeusoftComputerScienceandTechnologyDepartmentcopyrightHowtoofferdifferentstyles?ChicagostyleNewYorkstyle8/18/20215NeusoftComputerScienceandTechnologyDepartmentcopyrightVersion2:factorymethod8/18/20216NeusoftComputerScienceandTechnologyDepartmentco
3、pyrightTheFactoryMethodPatternTheFactoryMethodPatterndefinesaninterfaceforcreatinganobject,butletssubclassesdecidewhichclasstoinstantiate.FactoryMethodletsaclassdeferinstantiationtosubclasses.8/18/20217NeusoftComputerScienceandTechnologyDepartmentcopyrightClassdiagram:FactoryMethod8/18/2021
4、8NeusoftComputerScienceandTechnologyDepartmentcopyrightClassisoverCongratulations!8/18/20219NeusoftComputerScienceandTechnologyDepartmentcopyright
此文档下载收益归作者所有