重构之路第六篇——处理概括关系

1 Pull up Field(字段上移)

2 Pull up Method(函数上移)

3 Pull up Constructor Body(构造函数本体上移)

4 Push Down Method(函数下移)

5 Push Down Field(字段下移)

6 Extract Subclass(提炼子类)

7 Extract Superclass(提炼超类)

8 Extract Interface(提炼接口)

9 Collapse Hierarchy(折叠继承体系)

10 Form Template Method(塑造模板函数)

11 Replace Inheritance with Delegation(以委托取代继承)

12 Replace Delegation with Inheritance(以继承取代委托)

原文地址:https://www.cnblogs.com/cs-forget/p/7709962.html