add refactoring kata into 重构.md
This commit is contained in:
parent
e610e0fb10
commit
bd3f5ca243
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user