摘要: 设计模式-设计原则 1、单一原则 单一职责原则的英文名称是Single Responsibility Principle,简称SRP。单一职责原则规定一个类应该有且仅有一个引起它变化的原因,否则类应该被拆分。There should never be more than one reason for 阅读全文
posted @ 2022-06-07 22:05 二月无雨 阅读(37) 评论(0) 推荐(0) 编辑