In the previous chapter, we discussed the Common Reuse principle. It was the second principle of package cohesion and it told us that we should put classes in a package that will be used together with the other classes in the package. If a user wants to use a class or a group of classes separately, this calls for a package split.
© Matthias Noback 2018Matthias NobackPrinciples of Package Designhttps://doi.org/10.1007/978-1-4842-4119-6_8
8. The Common Closure Principle
Zeist, The Netherlands
The third principle of package cohesion is called the Common Closure principle. It’s closely related to the Common Reuse principle because it gives you another perspective on granularity: you will get another answer on the question as to which ...