请大家谈谈Single Responsibility Principle(SRP)....
看Martin 的ASD,提到了OO的有些原则,
有一些东西不太清楚。
他对这个原则描述如下:
(There should never be more than one reason for a class to change )
他把 Responsibility 定义为 “a reason for change”
清楚一点讲的话:Responsibility 和接口的关系是什么?
那些接口是同属于一个职责的?
如何把一个类提供的接口进行分组??
请大家指教! 多谢!!