Originally posted by Ashley Bideau:
Select 3 options ?
A) Cohesion helps understand a class and method does
B) Cohesion helps understand one class without studying others
C) Cohesion minizes changes in other classes when one class is changed
D) Cohesion allows the use of description names
E) Cohesion promotes reuse of classes or methods
Some of these are hard to understand, as I think they're missing some words, but here's what I think the answers are and why.
"A)" because a cohesive method is highly focused on a single task, which should simplify the code and make it easier to follow. The same should hold true for the entire class.
"D)" If it's focused on a single task, descriptive naming is easy.
"E)" I know this one is right (the most obviously right one, I think). By keeping things as generic as possible (yeah I know how is it focused and generic)....eh...I feel like I'm stretching now, so I'll say no more