- 5
- 0
- 约9.35千字
- 约 74页
- 2020-11-11 发布于四川
- 举报
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 单
您可能关注的文档
- 信息安全概论课件 消息认证码MAC的应用.pptx
- 系统分析与设计课件 ch9.pptx
- 算法设计分析课件 算法设计与分析第9章--教案试用版1x.pptx
- 算法设计分析课件 算法设计与分析第8章--教案试用版1x.pptx
- 算法设计分析课件 算法设计与分析第7章--教案试用版1x.pptx
- 算法设计分析课件 算法设计与分析第7章--教案试用版1x [自动保存的].pptx
- 算法设计分析课件 算法设计与分析第5章--教案试用版1x.pptx
- 算法设计分析课件 算法设计与分析第4章--教案试用版1x.pptx
- 算法设计分析课件 算法设计与分析第3章--教案补充.pptx
- 算法设计分析课件 算法设计与分析第3章--教案2x.pptx
原创力文档

文档评论(0)