单一职责原则

单一职责原则:Single Responsibility Principle

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

接口一定做到单一职责原则,类尽量做到只有一个原因引起变化。

posted on 2016-11-16 20:06  shuimx  阅读(100)  评论(0)    收藏  举报

导航