Example #1
0
        static void Main(string[] args)
        {
            IPersonManager customerManager = new CustomerManager();
            IPersonManager employeeManager = new EmployeManager();

            employeeManager.Add();
            Console.WriteLine("--------");

            ProjectManager projectManager = new ProjectManager();

            projectManager.AddCustomer(new CustomerManager());
            projectManager.AddEmployee(new EmployeManager());
            Console.WriteLine("------");

            ProjectManager2 projectManager2 = new ProjectManager2();

            projectManager2.Add(customerManager);   //Yukarıda new'lediğim için burada gerek yok
            projectManager2.Updated(new InternManager());
        }
Example #2
0
 public void AddEmployee(EmployeManager employeManager)
 {
     employeManager.Add();
 }