Dealing with Generalization

1. Pull Up Field

2. Pull Up Method

3. Pull Down Method

4. Push Down Field

5. Pull up Constructor body

6. Extract Subclass

7. Estract Superclass

8. Extract Interface

9. Collapse Hierarchy

10. From Template Method

11. Replace Inheritance with Delegation

12. Replace Delegation with Inheritance

你可能感兴趣的:(Dealing with Generalization)