- 1
- 0
- 约3.34千字
- 约 29页
- 2020-02-09 发布于山东
- 举报
面向对象设计
面向对象设计
对象职责分配
面向对象设计原则
类图建模
CRC卡片分拣法
设计模式
软件设计-对象交互
对象职责
“知道”型职责(knowing)
“做”型职责(doing)
“交流”型职责(communicating)
GRASP职责分配原则
信息专家 (Information Expert)
创造者 ( Creator )
低耦合 (Low coupling )
高内聚 (High cohesion )
控制器 ( Controller )
多态 ( Polymorphism )
纯虚构 ( Pure Fabrication )
间接 (Indirection )
受保护变化 ( Protected Variations )
通用职责分配软件模式GRASP(General Responsibility Assignment Software Patterns)是描述对象设计和职责分配的基本原则。
面向对象设计原则
S = Single Responsibility Principle
O = Opened-Closed Principle
L = Liskov Substitution Principle
I = Interface Segregation Principle
D = Dependency Inversion Principle
单一职责原
原创力文档

文档评论(0)