示例#1
0
 public override void VisitCustomer(RichCustomer richCustomer)
 {
     Console.WriteLine("Customer " + richCustomer.name + " can pay 100$ for " + GetType().Name);
 }
示例#2
0
 public abstract void VisitCustomer(RichCustomer richCustomer);