예제 #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");

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

            employeeManager.Add();

            PersonManager personManager = new PersonManager("Product");

            personManager.Add();

            // static nesneler ortaktır, genelde uzakta dururuz
            Teacher.Number = 10;

            Utilities.Validate();

            Manager.Method1();               // static
            Manager manager = new Manager(); // static değil

            manager.Method2();

            Console.ReadLine();
        }