重构-改善既有的代码设计-在对象之间搬移特性(7)

版权声明:不自见故明;不自是故彰;不自伐故有功;不自矜故长; https://blog.csdn.net/LightUpHeaven/article/details/84638727

在对象之间编译特性

7.1搬移函数(Move Method)

7.2搬移字段(Move Field)

扫描二维码关注公众号,回复: 4347797 查看本文章

7.4.提炼类(Extract Class)

7.4.将类内联化(Inline Class)

7.5.隐藏“委托关系”(Hide Delegate)

7.6.移除中间人(Remove Middle Man)和 7.5做法和目的相反

7.7.引入外加函数(Introduce Foreign Method)

7.8.引入本地扩展(Introduce Local Extension)

猜你喜欢

转载自blog.csdn.net/LightUpHeaven/article/details/84638727