单一职责原则(SIngel Responsibility Principle SRP)

SRP 用原话解释就是 There should never be more than one reason for a class to  change  翻译一下也就是有且只有一个原因引起该类的变更,它最大的难点就是对职责的定义

猜你喜欢

转载自blog.csdn.net/weixin_40652746/article/details/82118705
今日推荐