Ad Code

Coupling and cohesion relationship

Coupling and cohesion relationship is among objects, whereas inheritance relationship exists between classes; kindly elaborate?


Cohesion is a measure of how strongly-related or focused the responsibilities of a single module are. Since cohesion is within module so this dependency is about objects i.e. cohesion is related to objects' link in a module. Coupling is a measure of independence of a module or component. Coupling measures linkage between modules. Link between modules is because of object interaction. So coupling too is among objects of different modules. Where inheritance is relationship between classes. 
Reactions

Post a Comment

0 Comments