1.单一职责原则

单一职责原则的定义是:应该有且仅有一个原因引起类的变更。

SRP:There should never be more than one reason for a class to change.

results matching ""

    No results matching ""