The Single Responsibility Principle

  • Noback M
N/ACitations
Citations of this article
65Readers
Mendeley users who have this article in their library.
Get full text

Abstract

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.

Cite

CITATION STYLE

APA

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

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free