This is useful when a method is too big and you want to subdivide blocks of it into different methods.
如果一个方法太大并且您想要把此方法再细分为不同的方法,这个重构将很有用。
2
For instance, if you want to subdivide each of the two grids in the previous listing into two units where one unit is twice as wide as the other, you write the code shown in listing 10.