© Matthias Noback 2018
Matthias NobackPrinciples of Package Designhttps://doi.org/10.1007/978-1-4842-4119-6_8

8. The Common Closure Principle

Matthias Noback1 
Zeist, The Netherlands

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.

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 ...

Get Principles of Package Design: Creating Reusable Software Components now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.