a class should have only one reason to change
一个类应该只有一个改变的理由
以上为机器翻译结果,长、整句建议使用 人工翻译 。
A class should have only one reason to change.
一个类应该只有一个理由去修改它。
youdao
一个类应该只有一个原因能引起它变化。
The Single Responsibility Principle: a class should have only one reason to change.
一个类应该有且只有一个改变的理由。
应用推荐
模块上移
模块下移
不移动