CSC/ECE 517 Fall 2009/wiki3 3 cp
Common Closure Principle
In simple words the Common Closure Principle refers to classes that change topether, belong together, this is a very simple definition taken from the book Java Design: Objects, UML and Process written by Kirk Knoernschild.
A more explained definition of Common Closure Principle, given by Robert Martin, is
THE CLASSES IN A PACKAGE SHOULD BE CLOSED TOGETHER AGAINTS THE SAME KINDS OF CHANGES. A CHANGE THAT AFFECTS A PACKAGE AFFECTS ALL THE CLASSES WITHIN THAT PACKAGE.
See Granularity PDF Article written by Robert Martin for more details
In other words, what affects one, affects all broader and detailed explanations are given in this wikiwork.
Introduction and Objective
There are several web pages that explain in few words what is Common Closure Principle, but they fall short by just giving definitions and very few examples.
Therefore the objective of the wiki work is to dedicate a deeper investigation on this topic and application examples.