using System; using System.Collections.Generic; using System.Text; namespace Lapid1 { class Program2 { public static void Main(string[] arg) { Riidelapp[] Lapid = new Riidelapp[3]; Lapid[0] = new Riidelapp(7, 5, "sinine"); Lapid[1] = new Riidelapp(8, 5, "kollane"); Lapid[2] = Lapid[1].L6ika(25); foreach(Riidelapp lapp in Lapid){ Console.WriteLine(lapp); } List hoidla = new List(); hoidla.Add(Lapid[0]); hoidla.Add(new Riidelapp(25, 15, "punane")); foreach (Riidelapp lapp in hoidla) { Console.WriteLine(lapp); } } } }