Пример #1
0
        static void Main(string[] args)
        {
            //Soyutlama Mantığı...

            //Baresss...
            ReelCustomer customer1 = new ReelCustomer();

            customer1.ID         = 1;
            customer1.CustumerNo = "12345";
            customer1.Name       = "Barış";
            customer1.LastName   = "Karakaya";
            customer1.TcNo       = "1425678945";

            //Kodlama.io...

            CompanyCustomer customer2 = new CompanyCustomer();

            customer2.ID          = 2;
            customer2.CustumerNo  = "54321";
            customer2.CompanyName = "Kodlama.io";
            customer2.TaxNo       = "423568751";


            //SOLID...
            //Gerçek Müşteri - Tüzel Müşteri...

            Customer customer3 = new ReelCustomer();
            Customer customer4 = new CompanyCustomer();
            //Customer Sınıfı her iki sınıfında referansını tutabiliyor...
            //Base sınıf bir referans tutucudu...
        }
Пример #2
0
        static void Main(string[] args)
        {
            //SO - L - ID

            //Mushvig - PersonCustomer
            PersonCustomer customer1 = new PersonCustomer();

            customer1.CustomerNo = "12345";
            customer1.Name       = "Mushvig";
            customer1.SName      = "Guluzada";
            customer1.TcNo       = "1234556";
            customer1.Id         = 1;

            //HTB LLC - CompanyCustomer

            CompanyCustomer customer2 = new CompanyCustomer();

            customer2.CustomerNo  = "12345";
            customer2.CompanyName = "HTB LLC";
            customer2.TaxNo       = "12345666";
            customer2.Id          = 2;
        }