Cohesion is the degree of closeness of the functions within a component. For example, consider a library of functions. If the library contains similar functions, then it is said to have high cohesion. A general purpose library, with many different functions, is said to have low cohesion.