第07讲类的提取与设计.pptVIP

  • 4
  • 0
  • 约4.95千字
  • 约 51页
  • 2016-12-10 发布于湖北
  • 举报
构造型的使用 为每一个属性和操作集分类,并且为该组提供一个名称 称为一个构造型 用《》括起来 Employee basic details employeeId : Integer employeeName : String dateOfBirth : DOB employment details salary : Float 0 department : String ... setter operations setEmployeeDetails setSalarysalary : Float ... getter operations getEmployeeDetails getSalary : Float 类的职责 Employee Responsibilities -- maintain the employee details -- determine the age of the employee -- capable of setting employee details 类的分析与提取 名词法:搜索用例并找出所有名词,组成候选类 CRC技术:类-职责-协作 */53 类的获取--分析类 代表了对系统设计中一个或几个类或若干子系统的抽象 特征 侧重处理功能性需求 很少定义或提供任何接口,其行为由职责表示 定义的属性是较高层次 关系也是较高层次的

文档评论(0)

1亿VIP精品文档

相关文档