public Bæger(int antal) { this.AntalTerninger = antal; terninger = new Terning[AntalTerninger]; for (int i = 0; i < AntalTerninger; i++) { terninger[i] = new Terning(); } }
static void Main(string[] args) { Terning t = new Terning(); t.Ryst(); t.Skriv(); Terning t2 = new Terning(4); t2.Skriv(); Bæger bæger = new Bæger(-4); Console.WriteLine(); }