Beispiel #1
0
        static void Main(string[] args)
        {
            Urun urun1 = new Urun();

            urun1.Adi = "Üzüm";

            Urun urun2 = new Urun();

            urun2.Adi = "Elma";

            Urun[] urunler = new Urun[] { urun1, urun2 };

            foreach (Urun urun in urunler)
            {
                Console.WriteLine(urun.Adi);
            }

            SepetManager sepetManager = new SepetManager();

            sepetManager.Ekle(urun1);
            sepetManager.Ekle(urun2);
            sepetManager.Sil(urun1);
        }