We say that a module or class has high cohesion when it is designed around a set of related functions, and we say it has low cohesion when it is designed around a set of unrelated functions.
เราพูดว่า Class หรือโมดูลที่มีรายได้สูงสูงเมื่อมีการออกแบบโดยรอบตั้งค่าการทำงานที่เกี่ยวข้องและเราบอกว่ามีระดับต่ำ เกาะกันเป็นก้อนเมื่อได้รับการออกแบบมาโดยรอบชุดของฟังก์ชันที่ไม่เกี่ยวข้อง