Object Oriented Software Engineering   View all facts   Glossary   Help
subject > criterion > quality > software quality > cohesion > functional cohesion
Next cohesionlayer cohesion    Upcohesion    Previous cohesioncommunicational cohesion   

functional cohesion comparison table
Subject use is a kind of have advantages achieve when has definition
cohesion software quality  A measure of the extent to which related aspects of a system are kept together in the same module, and unrelated aspects are kept out
functional cohesionif possiblecohesion
  • It is easier to understand a module when you know all it does is generate one specific output and has no side effects
  • It is easier to replace a functionally cohesive module with another that performs the same computation
  • functionally cohesive module is much more likely to be reusable
a module only performs a single computation, and returns a result, without having side-effectsA form of cohesion in which modules which together perform a function (a computation that returns a result and has no side effects) are kept together, and everything else is kept out

Next cohesionlayer cohesion    Upcohesion    Previous cohesioncommunicational cohesion