예제 #1
0
 public override void VisitConcreteElementB(ConcreteElementB concreteElementB)
 {
     Console.WriteLine($"{concreteElementB.GetType().Name}被{this.GetType().Name}访问");
 }
예제 #2
0
 public override void Visit(ConcreteElementB elementB)
 {
     //元素B的代码
 }
예제 #3
0
 public abstract void VisitConcreteElementB(ConcreteElementB concreteElementB);
예제 #4
0
 public abstract void Visit(ConcreteElementB elementB);