In this context a responsibility is considered to be one reason to change. This principle states that if we have 2 reasons to change for a class, we have to split the functionality in two classes. Each class will handle only one responsibility and on future if we need to make one change we are going to make it in the class which handle it. When we need to make a change in a class having more responsibilities the change might affect the other functionality of the classes.\r\rThe Single Responsibility Principle is a simple and intuitive principle, but in practice it is sometimes hard to get it right.
CITATION STYLE
Noback, M. (2018). The Single Responsibility Principle. In Principles of Package Design (pp. 3–10). Apress. https://doi.org/10.1007/978-1-4842-4119-6_1
Mendeley helps you to discover research relevant for your work.