开闭原则(open-close principle) 对继承开放、对修改关闭(继承了就不能修改原来父类的方法)Open for extensionClosed for modification 设计模式职责 2024-08-04 182 点赞 2 评论 275 浏览