public class Constant {
...
private Constant(){}
}
public class RacingInfomation {
private final Integer numberOfCar;
private final Integer playCount;
...
}
: 인터페이스를 매번 분리하는것은 상속객체들의 복잡도를 증가시키기에 효율적이지 않다.
기능이 변경되거나 추가될 가능성이 있는 경우
, 또는 짧은 시간내에 요구사항이 변경될 예정
인 경우에 인터페이스 분리를 하도록 하자.
//worst case
public void go(RacingGame game) {
if (allowMove(game.getNumber())) {
skidMark.append("-");
}
}