23种设计模式

策略模式

对类的行为进行实现,创建类的时候添加接口,类中添加切换接口实现类的方法,随意切换完成该行为的类去实现方法

原文地址:https://www.cnblogs.com/bluekang/p/13321108.html