What is lack of cohesion?

1 answer

Answer

1254547

2026-05-19 20:25

+ Follow

Lack of cohesion refers to a code smell in software development where a module or class has multiple unrelated responsibilities or functions. It indicates a design flaw that can make the code harder to understand, maintain, and test. Refactoring to improve cohesion often involves splitting the module into smaller, more focused components that each have a single responsibility.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.