// Sphere類別呼叫用 public override void VisitSphere(Sphere theSphere) { Count += theSphere.GetVectorCount(); }
// Sphere類別呼叫用 public virtual void VisitSphere(Sphere theSphere) {}
// Sphere類別呼叫用 public override void VisitSphere(Sphere theSphere) { theSphere.Draw(); }
// Sphere類別呼叫用 public override void VisitSphere(Sphere theSphere) { Volume += theSphere.GetVolume(); }
// Sphere类别呼叫用 public override void VisitSphere(Sphere theSphere) { Count += theSphere.GetVectorCount(); }
// Sphere类别呼叫用 public override void VisitSphere(Sphere theSphere) { theSphere.Draw(); }
// Sphere类别呼叫用 public virtual void VisitSphere(Sphere theSphere) { }
// Sphere类别呼叫用 public override void VisitSphere(Sphere theSphere) { Volume += theSphere.GetVolume(); }