I would like to learn about the One Class, One Responsibility principle. I have found some articles about it, but without examples. It would help me if you can giv
The principle is exactly what it says it is, not much more. One class should only have one responsibility.
It can be difficult to define responsibilities though. An example could be a "DatabaseHandler"-class that handles all database requests in an application.