摘要: 当if-else过多的时候,为了后续可维护拓展,采用策略模式 也就是定义一个共用接口,不同的类实现该接口 策略模式 阅读全文
posted @ 2021-11-15 12:00 张三丰学Java 阅读(17) 评论(0) 推荐(0) 编辑