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()); }
public void AddEmployee(EmployeManager employeManager) { employeManager.Add(); }