設計模式之——單一職責原則

SRP:Single responsibility principle,它規定一個類應該只有一個發生變化的原因。

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

 

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