Single Responsibility Principle: Design Patterns

What is the Single Responsibility Principle:

Single Responsibility Principle requires an interface or class has only one reason to cause change, which is an interface or class has only one responsibility, it is responsible for one thing.

Single Responsibility benefits:

Single Responsibility Principle to solve the problem, what scenario applies

Single responsibility principle reflected in how the code is

Guess you like

Origin www.cnblogs.com/xiqoqu/p/11933951.html