Пример #1
0
 // 有Cylinder类来调用
 public virtual void VisitCylinder(Cylinder theCylinder)
 {
 }
Пример #2
0
 public override void VisitCylinder(Cylinder theCylinder)
 {
     theCylinder.Draw();
 }