static void Main(string[] args) { Perfume No5 = new Perfume("五号香水"); Shop shop = new Shop("香水店"); //一个叫香水店的商店进入了场景 Customer lily = new Customer("lily"); //一个叫lily的顾客进入了场景 Manager lilei = new Manager("lilei"); //一个叫lilei的经理进入了场景 Employee lucy = new Employee("lucy"); //一个叫lucy的雇员进入了场景 shop.Duty(lilei); //上班 shop.Duty(lucy); //上班 shop.Enter(lily); //逛街 lilei.IntroduceTo(lucy, lily); //指定人介绍 lucy.Recommend(No5, lily); //介绍了商品 lily.Buy(No5); }
//推荐 public void Recommend(Perfume good, Customer person) { Console.WriteLine($"雇员{this.Name}给{person.Name}好好推荐了一下{good.Name}"); }
public void Buy(Perfume good) { Console.WriteLine($"{this.Name}购买了{good.Name}"); }