public override void Visit(Medicine a) { Console.WriteLine("审核人员:" + name + "审核药品 :" + a.getName() + "审核价格:" + a.getPrice()); }
public override void Visit(Medicine a) { Console.WriteLine("药房工作者:" + name + "拿药 :" + a.getName()); }
public override void Visit(Medicine a) { Console.WriteLine("划价员:" + name + "给药" + a.getName() + "划价:" + a.getPrice()); }
/// <summary> /// 抽象访问者访问抽象元素 /// </summary> /// <param name="a"></param> public abstract void Visit(Medicine a);
public void RemoveMedicien(Medicine medicine) { listMedicine.Remove(medicine); }
public void AddMedicine(Medicine medicine) { listMedicine.Add(medicine); }