Single Responsibility Principle: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
=External=
* http://www.oodesign.com/single-responsibility-principle.html
=Internal=
=Internal=


Line 6: Line 10:


Robert C. Martin: ''Gather together those things that change for the same reason, and separate those things that change for different reasons''.
Robert C. Martin: ''Gather together those things that change for the same reason, and separate those things that change for different reasons''.
Other formulation is: a class should have only a single reason to change.

Revision as of 23:04, 14 January 2018

External

Internal

Overview

Robert C. Martin: Gather together those things that change for the same reason, and separate those things that change for different reasons.

Other formulation is: a class should have only a single reason to change.