// Cylinder類別呼叫用 public override void VisitCylinder(Cylinder theCylinder) { theCylinder.Draw(); }
// Cylinder類別呼叫用 public virtual void VisitCylinder(Cylinder theCylinder) { }
// Cylinder類別呼叫用 public override void VisitCylinder(Cylinder theCylinder) { Count += theCylinder.GetVectorCount(); }
// Cylinder類別呼叫用 public virtual void VisitCylinder(Cylinder theCylinder) {}