策略模式--替代if-else
用于取代以下代码 switch(resourceType){ case "红包": String grantType=new Context(new RedPaper()).ContextInterface(); break; case "购物券": String grantType=new Context(new…
49 2023-02-21 去围观用于取代以下代码 switch(resourceType){ case "红包": String grantType=new Context(new RedPaper()).ContextInterface(); break; case "购物券": String grantType=new Context(new…
49 2023-02-21 去围观