Merge pull request #357 from aikin/patch-1

add refactoring kata into 重构.md
This commit is contained in:
郑永川 2018-08-05 23:32:03 +08:00 committed by GitHub
commit e6475eb3bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,7 @@
* [10. 塑造模板函数](#10-塑造模板函数)
* [11. 以委托取代继承](#11-以委托取代继承)
* [12. 以继承取代委托](#12-以继承取代委托)
* [练习重构的栗子](#练习重构的栗子)
* [参考资料](#参考资料)
<!-- GFM-TOC -->
@ -1415,6 +1416,10 @@ public Manager(String name, String id, int grade) {
让委托类继承受托类。
# 练习重构的栗子
* [Refactoring Kata](https://github.com/aikin/refactoring-kata)
# 参考资料
- MartinFowler, 福勒, 贝克, 等. 重构: 改善既有代码的设计 [M]. 电子工业出版社, 2011.