static void Main(string[] args) { // interface new lenemez CustomeManager ccutomerManager = new CustomeManager(); // interface referans tip : onu implemente eden clasın referans nosunu tutabilir IPersonManager emloyeeManager = new EmployeeManager(); ProjectManager projectManager = new ProjectManager(); projectManager.AddCustomer(customerManager); }
public void AddCustomer(CustomeManager customeManager) { customeManager.Add(); }