Home / Questions / Explain Cohesion in OOP and why it is beneficial?
Explanatory Question

Explain Cohesion in OOP and why it is beneficial?

👁 17 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Cohesion means a class should perform only one task.

Benefit:

  • Cleaner design

  • Easier maintenance

  • Higher reusability