Discussion
In object-oriented analysis, what is cohesion ?
Answer: B
Cohesion is the degree to which elements within a module belong together.
A highly cohesive module or class does one well-defined job, and all its methods and data serve that job. Good design aims for high cohesion together with low coupling, because cohesive modules are easier to understand, reuse and change.
The degree of interaction between modules is coupling, the usual partner concept and the trap here. The number of classes and the depth of the inheritance hierarchy are size and structure metrics, not cohesion.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development