OCP:即 Open Close ProgramOpen:对功能的扩展是open的 Close:业务主逻辑是不能更改的 转载于:https://www.cnblogs.com/xbj-2016/p/5147622.html