Cohesion (computer science) (source code)

= Cohesion (computer science)
{wiki=Cohesion_(computer_science)}

In computer science, particularly in software engineering, cohesion refers to the degree to which the elements within a module, class, or component of a system are related to one another. It is a measure of how well the parts of a system work together to meet a single, well-defined purpose. Cohesion is a key concept in the design of software systems and is often used to evaluate the quality of the system's modularity.