Wednesday, March 15, 2006

Object Primer - Cohesion

Tip : An object should be highly cohesive.

Cohesion is a measure of how much an item say for eg. a class or method, makes sense.
Objects with low cohesion are more likely to be changed.

A method is highly cohesive if it does one thing and only one thing.

No comments: