设计模式之——单一职责原则

SRP:Single responsibility principle,它规定一个类应该只有一个发生变化的原因。

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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章