Types of Coupling in Software Engineering


Coupling is a measure that defines the level of inter-dependability among modules of a program. It tells at what level the modules interface and interact with each other.

Classification of Coupling:

There are five types of Coupling as given as follows:
1. Content Coupling: When a module can directly access or modify or refer to the content of another module, it is called Content Coupling.

2. Common Coupling: When multiple modules have read and write access to some global data, it is called Common Coupling or Global Coupling.

3. Control Coupling: The modules are called Control Coupled if one of them decides the function of the other module or changes its flow of execution.

4. Stamp Coupling: When multiple modules share a common data structure and work on a different part of it, that is called Stamp Coupling.

5. Data Coupling: Data Coupling is when two modules interact with each other using passing data. If a module passes data structure as a parameter, then the receiving module should use all its components.