模式设计原则----单一职责原则

单一职责原则(Single Responsibility Principle),简称SRP。

定义:

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

应该有且仅有一个原因引起类的变更。

大话设计模式上面举例是俄罗斯方块,呵呵,对我难度有点大噢,先把这个示例放着

原文地址:https://www.cnblogs.com/nygfcn1234/p/3361395.html