软件设计模式课件 Lect2-AbstractFactory-Creational-180907.pptVIP

  • 14
  • 0
  • 约1.61万字
  • 约 49页
  • 2020-11-10 发布于四川
  • 举报

软件设计模式课件 Lect2-AbstractFactory-Creational-180907.ppt

Design reason: If we don’t use the abstract factory pattern, and just call the methods in classes House and Condo directly, then in the ClientGUI, we need to write a lot of conditional statements and this is not good for extension and maintenance Query Software of Building Features Benefits of the design: Responsibility separation: The responsibility of selecting and instantiating an appropriate House/Condo implementer is moved out of application objects to a separate designated abstract factory class. About BuildingFactory class: It simply declares the required interface, leaving the ac

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档