Skip to content

Glossary: Software Design Patterns in Java

Cohesion

Also written: high cohesion, low cohesion

How well the things inside one piece of code belong together. A method that only works out shipping has high cohesion.

Where the book teaches it

Related terms

CouplingSingle responsibility principle (SRP)