Created
June 1, 2017 06:58
-
-
Save woprzech/968547fbc9de2ee2ddff9dd2534813b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GradesService { | |
private final Gradebook gradebook; | |
public GradesService(Gradebook gradebook) { | |
this.gradebook = gradebook; | |
} | |
Double averageGrades(Student student) { | |
return average(gradebook.gradesFor(student)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment