面向对象建模技术课件 Lect11-GRASP Patterns in OO Design.pptxVIP

  • 5
  • 0
  • 约9.35千字
  • 约 74页
  • 2020-11-11 发布于四川
  • 举报

面向对象建模技术课件 Lect11-GRASP Patterns in OO Design.pptx

Professor: Yushan Sun Spring Term 2018;本讲内容:责任分配的一般原则;1. Information Expert Pattern;问题:将责任分配到对象中的一般原则是什么? Problem: What is a general principle of assigning responsibilities to objects? 信息专家模式:将责任分配给专家类(拥有实现该责任的信息的类) Information Expert pattern: Assign a responsibility to the information expert, the class that has the information necessary to fulfill the responsibility.;【例1】出库单的例子。Consider outbound order domain model class diagram, including OutboundOrder class, which represents all the details of one outbound order, which contains date 日期 time 时间 goods name 商品名, id, and unit price, and 单

文档评论(0)

1亿VIP精品文档

相关文档