DesignPatternPPT.pptVIP

  • 14
  • 0
  • 约8.43万字
  • 约 206页
  • 2017-05-08 发布于山西
  • 举报
DesignPatternPPT

Design Pattern SSE USTC Qing Ding Factory Method In injection molding, manufacturers process plastic molding powder and inject the plastic into molds of desired shapes. Like the Factory Method, the subclasses (in this case the molds) determine which classes to instantiate. In the example, the ToyHorseMold class is being instantiated. Factory Purpose defines an interface for creating objects, but lets subclasses decide which classes to instantiate. Participant Correspondence: The Injection Mold corresponds to the Product, as it defines the interface of the objects created by the factory. A s

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档