Which software design concept measures the degree to which elements within a module belong together?

Options

  • A. Coupling
  • B. Cohesion
  • C. Inheritance
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. Cohesion

Detailed Explanation

Explanation: Cohesion measures how closely related the responsibilities of elements within a single module are. High cohesion is desirable because a module should focus on one well-defined task.