dependency between modules should be less.Ĭohesion is the kind of natural extension of data hiding for example, class having all members visible with a package having default visibility. While designing you should strive for low coupling i.e. a cohesive component/ module focus on a single task (i.e., single-mindedness) with little interaction with other modules of the system. While designing you should strive for high cohesion i.e. Cohesion is the indication of the relationship within module.Ĭoupling is the indication of the relationships between modules.Ĭohesion shows the module’s relative functional strength.Ĭoupling shows the relative independence among the modules.Ĭohesion is a degree (quality) to which a component / module focuses on the single thing.Ĭoupling is a degree to which a component / module is connected to the other modules.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |