Beispiel #1
0
 public Gsm(string manufacturer, int price = 0, string owner = null, Battery battery = null, Display display = null, Gsm iphone = null)
 {
     this.Manufacturer = manufacturer;
     this.Price = price;
     this.Owner = owner;
     this.Battery = battery;
     this.Display = display;
 }
        // You can play around with the code to test its functionality.
        static void Main()
        {
            Gsm gsm = new Gsm("iphone");
            Gsm gsm1 = new Gsm("iphon3");
            Gsm gsm2 = new Gsm("iphone2");

            GsmTest gsmtest = new GsmTest(new List<Gsm>() { gsm, gsm1, gsm2 });

            gsmtest.GetInfoForIPhone();
        }