The Single Responsibility Principle (SRP)2 states that a class or module should have one, and only one, reason to change.
单一权责原则认为,类或模块应有且只有一条加以修改的理由。
The Single Responsibility Principle (SRP)2 states that a class or module should have one, and only one, reason to change.
单一权责原则认为,类或模块应有且只有一条加以修改的理由。
应用推荐