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