Coupling ناپتا ہے کہ ایک module دوسرے پر کتنا منحصر ہے؛ cohesion ناپتا ہے کہ کسی module کے اندرونی حصے ایک دوسرے کے ساتھ کتنے مضبوطی سے تعلق رکھتے ہیں۔ مقصد: low coupling, high cohesion۔
دونوں محور
text
HIGH cohesion → a class does ONE well-defined job, parts relate strongly ✅
LOW coupling → modules interact through small, stable interfaces ✅
کم cohesion (برا) بمقابلہ زیادہ cohesion (اچھا)
python
