单一职责原则
单一职责原则(Single Responsibility Principle)–SRP:
There should never be more than one reason for a class to change.
应该有且仅有一个原因引起类的变更。
单一职责原则(Single Responsibility Principle)–SRP:
There should never be more than one reason for a class to change.
应该有且仅有一个原因引起类的变更。