public Bæger() { terninger = new Terning[5]; for (int i = 0; i < 5; i++) { terninger[i] = new Terning(); } }
public Bæger(int v1, int v2, int v3, int v4, int v5) { terninger = new Terning[5]; terninger[0] = new Terning(v1); terninger[1] = new Terning(v2); terninger[2] = new Terning(v3); terninger[3] = new Terning(v4); terninger[4] = new Terning(v5); }