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.
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.
Comments