来源:https://stackoverflow.com/questions/46701050/avoid-multiple-if-else-statements-in-a-factory-class-language-agnostic 标签 oop design-patterns language-agnostic