using System; using System.Collections.Generic; using System.Text; namespace Lapistik1 { class LapiProov1 { public static void Main(string[] arg) { Riidelapp lapp1 = new Riidelapp(4, 6, "sinine"); Riidelapp riba1 = lapp1.Poolita(1); //Riidelapp riba1 = lapp1.Poolita(10); Console.WriteLine(lapp1.ToString()); Console.WriteLine(riba1.ToString()); Riidelapp lapp2 = lapp1.Poolita(); Riidelapp lapp3 = lapp2.Poolita(); Console.WriteLine(lapp1.ToString()); Console.WriteLine(lapp2.ToString()); Console.WriteLine(lapp3.ToString()); } } }