January 15, 2014

Single Responsibility Principle

Definition: An object should have a single responsibility. In practice, to adhere to this principle, an object is a class and that a class’s functionality is grouped around a single idea or unit of responsibility. Robert C Martin defined responsibility as a reason to change. This means that a class should only have one reason…

Read More