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

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

定义:

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

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

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

posted @ 2013-10-10 15:37  nygfcn  阅读(116)  评论(0)    收藏  举报