Beispiel #1
0
 public abstract void VisitElementY(ConcreteElementY element);
Beispiel #2
0
 public override void VisitElementY(ConcreteElementY element)
 {
     Debug.Log("ConcreteVisitorA 访问 ElementY");
 }
Beispiel #3
0
 public ObjectStructure()
 {
     elementX = new ConcreteElementX();
     elementY = new ConcreteElementY();
 }