GitHubSign in

A measure of how well the lines of source code within a module work together.

"High cohesion within a module means that its functions are closely related in functionality, making it easier to maintain."

@gh-community

The degree to which the elements of a module belong together, aiming for high cohesion within modules in software design.

"High cohesion within a class means that its responsibilities are well-aligned and it does not try to do too much."

@openai