NOTE
Single Responsibility Principle
The single-responsibility principle keeps a class's responsibilities focused. These notes examine readability and maintenance through that idea.
This is a historical learning note and may contain outdated or incomplete understanding.
1. What Is the Single Responsibility Principle?
A class should do only one thing; an implementation class should have a single responsibility.
2. Why Is the Single Responsibility Principle Needed?
Improve code readability.
3. Implementing the Single Responsibility Principle
The designer needs to identify the different responsibilities of a class, separate them, and then encapsulate them in different classes or modules.
4. References
Drag to pan, scroll to zoom, and click a node to expand or collapse it. Large maps start with deeper levels collapsed; click nodes to expand them.
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub