1、开闭原则
Software entities (classes,modules,function,etc.) should be open for extension,but closed for modification. 软件实体(模块,类,方法等)应该对扩展开放,对修改关闭。