Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            GercekMüsteri müsteri1 = new GercekMüsteri();

            müsteri1.Id        = 1;
            müsteri1.MusteriNo = "12345";
            müsteri1.Adi       = "Deniz";
            müsteri1.Soyadi    = "Aslan";
            müsteri1.TcNo      = "123456456";

            TüzelMüsteri müsteri2 = new TüzelMüsteri();

            müsteri2.Id        = 2;
            müsteri2.MusteriNo = "54321";
            müsteri2.SirketAdi = "Aslan Maden";
            müsteri2.VergiNo   = "1234567890";


            Müsteri müsteri3 = new GercekMüsteri();
            Müsteri müsteri4 = new TüzelMüsteri();

            CustomerManager musteriManager = new CustomerManager();

            musteriManager.Add(müsteri1);
            musteriManager.Add(müsteri2);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            //Hilmi Turgut
            GercekMusteri musteri1 = new GercekMusteri();

            musteri1.Id        = 1;
            musteri1.MusteriNo = "12345";
            musteri1.Adi       = "Hilmi";
            musteri1.TcNo      = "Turgut";
            musteri1.TcNo      = "12345678910";


            //Kodlama.io
            TüzelMüsteri musteri2 = new TüzelMüsteri();

            musteri2.Id        = 2;
            musteri2.MusteriNo = "54321";
            musteri2.SirketAdi = "kodlama.io";
            musteri2.VergiNo   = "1234567890";



            //Gerçek müşteri - Tüzel müşteri
            //SOLID

            Musteri musteri3 = new GercekMusteri();
            Musteri musteri4 = new TüzelMüsteri();
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            GercekMüsteri musteri1 = new GercekMüsteri();

            musteri1.MusteriNo = "12345";
            musteri1.Adi       = "Berk";
            musteri1.Soyadi    = "Abay";
            musteri1.TcNo      = "1245684";

            TüzelMüsteri musteri2 = new TüzelMüsteri();

            musteri2.Id        = 2;
            musteri2.MusteriNo = "143453";
            musteri2.SirketAdi = "Abay software";
            musteri2.VergiNo   = "35245834";

            Musteri musteri3 = new GercekMüsteri();
            Musteri musteri4 = new TüzelMüsteri();

            MusteriManager musteriManager = new MusteriManager();

            musteriManager.Ekle(musteri1);
            musteriManager.Ekle(musteri2);
        }