@Test public void shouldOnlyCountItsOwnScore() throws Exception { LastFrame lastFrame = new LastFrame(3, 7, 5); int score=lastFrame.countScore(); assertThat(score, is(15)); }
@Override public int countScore() { return first + second + third; }
LastFrame extends Frame { @Override public int countScore() { return first + second + third; } }
LastFrame extends Frame { @Override public int countScore() { return first + second + third; } LastFrame(int first, int second, int third); }
LastFrame extends Frame { @Override public int countScore() { return first + second + third; } LastFrame(int first, int second, int third); @Override int countScore(); }
LastFrame extends Frame { @Override public int countScore() { return first + second + third; } LastFrame(int first, int second, int third); @Override int countScore();  }