Concept: Coupling

Abstract

Any time two classes are related in such a way that one depends on another for something, they are coupled. Coupling is what allows systems to work: rarely can anything interesting rightly be defined as a single class. The quality can be evaluated based on a number of criteria including strength and intent.

Body

If an object of one class might use an instance of another class, the user is said to be coupled to the used. The ability to do this is what allows modern software developers to do their jobs - individual objects are not nearly as interesting as groups of objects working together to solve a problem.

Coupling can be evaluated based on its strength:

  • Strong coupling
  • Weak coupling

Coupling can also be judged by how purposeful it appears to be:

  • Intentional coupling
  • Accidental coupling

Related Use Cases

Related Concepts

Other Actions

documentation | all examples | use cases | concepts | keywords