Exemple #1
0
        static void Main(string[] args)
        {
            CustomerManager customermanager = new CustomerManager();

            customermanager.List();

            Product product = new Product {
                Id = 1, Name = "Laptop"
            };
            Product product2 = new Product(2, "Computer");

            EmployeManager employeManager = new EmployeManager(new DataBaseLogger());

            employeManager.Add();


            PersonManager personmanager = new PersonManager("Product");

            personmanager.Add();

            //static nesneler ortak nesnelerdir ama genelde uzak durmaya çalışırlır
            Teacher.Number = 10;

            Utilities.Validate();

            Manager.DoSometing();
            Manager manager = new Manager();

            manager.DoSometing2();

            Console.ReadLine();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            CustomerManager customerManager = new CustomerManager();

            customerManager.List();

            Product product = new Product {
                Id = 1, Name = "Laptop"
            };
            Product product2 = new Product(2, "Sefa Pınar");

            EmployeeManager employeeManager = new EmployeeManager(new DatabaseLogger());

            employeeManager.Add();


            PersonManager personManager = new PersonManager("Product");

            personManager.Add();

            Teacher.Number = 10;
            Utilities.Validate();

            Manager.DoSomething();
            Manager manager = new Manager();

            manager.DoSometing2();



            Console.ReadLine();
        }