s1.OOD准则 抽象 Abstraction:抽出事物的本质特性,暂不考虑其 细节,使设计从具体实现方法中超脱。 3、信息隐藏 Information hiding=对象封装 Encapsulation of object 4、耦合 Coupling 交互耦合(in interactive coupling :通过传递 message发生 要求降低参数个数和参数复杂性 继承耦合 (inheritance coupling) 要求 Parent class s a child class→ as high as possible4 §1. OOD准则 3、信息隐藏Information hiding = 对象封装 Encapsulation of object 4、耦合Coupling: 交互耦合(interactive coupling):通过传递message发生 要求降低参数个数和参数复杂性 继承耦合(inheritance coupling): 要求 Parent class IS_A child class as high as possible 2、抽象Abstraction:抽出事物的本质特性, 暂不考虑其 细节,使设计从具体实现方法中超脱