向对象系统分析与设计_04_单例模式C++(2hours).pptVIP

  • 6
  • 0
  • 约小于1千字
  • 约 13页
  • 2016-11-05 发布于江苏
  • 举报

向对象系统分析与设计_04_单例模式C++(2hours).ppt

向对象系统分析与设计_04_单例模式C++(2hours).ppt

Neusoft Computer Science and Technology Department copy right OO System Analysis Design 【Singleton Pattern】 Enjoy chocolate… Our job is: To design a chocolate boiler, which could make a chocolate bars. The rules of chocolate boiler: To fill the boiler it must be empty; To drain the boiler it must be full and also boiled. To boil the boiler it must be full and not already boiled. How to design the class? A class diagram: Question: Can you improve the ChocolateBoiler class into which only one instance of ChocalateBoiler is created in an application? The Singleton Pattern The Singleton Pattern

文档评论(0)

1亿VIP精品文档

相关文档