...

/

Finding Better Homes for Our Methods

Finding Better Homes for Our Methods

Learn how to refactor the methods such that they are placed in relevant locations.

Our loop is a bit easier to read now, but the newly extracted code in matches() doesn’t have anything to do with the Profile object itself. It seems that either the Answer class or the Criterion class could be responsible for ...

Access this course and 1400+ top-rated courses and projects.