In Listing 6, I take the duplicated code in Listing 4 and reduce the duplication by using the Pull up method refactoring - extracting behavior from a larger method into an abstract class method.
在清单6中,我用了清单4中的重复代码,使用了Pull Up Method重构来降低重复度—将行为从较大方法提取到一个抽象类方法中。
In Listing 6, I take the duplicated code in Listing 4 and reduce the duplication by using the Pull up method refactoring - extracting behavior from a larger method into an abstract class method.
在清单6中,我用了清单4中的重复代码,使用了Pull Up Method重构来降低重复度—将行为从较大方法提取到一个抽象类方法中。
应用推荐