阅读背景:

如何不使用switch随机选择要实例化的类?

来源:互联网 

I'm refactoring a single 3000+-line class with a tangled web of conditionals and switches into a set of worker classes. Previously part of the constructor would select which "type" of thing to use via code like the following:I'm refactoring a single 3000+-line class with




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: