Пример #1
0
 public void visit(Wheel wheel)
 {
     Console.WriteLine("Visiting " + wheel.getName() + " wheel");
 }
Пример #2
0
 public void visit(Wheel wheel)
 {
     Console.WriteLine("visiting the wheel");
 }
		public void Visit(Wheel wheel) {
			Console.WriteLine("visiting {0} wheel", wheel.Name);
		}
Пример #4
0
 public void visit(Wheel wheel)
 {
     Console.WriteLine("Kicking my " + wheel.getName() + " wheel");
 }
 public void Visit(Wheel wheel)
 {
     Console.WriteLine("kicking my {0} wheel", wheel.Name);
 }
		public void Visit(Wheel wheel) {
			Console.WriteLine("kicking my {0} wheel", wheel.Name);
		}
 public void Visit(Wheel wheel)
 {
     Console.WriteLine("Wheel ({0}): {1}", wheel.Name, wheel.Tire);
 }
Пример #8
0
 public void Visit(Wheel wheel)
 {
     Console.WriteLine($"Output the element: {wheel.Name}");
 }
Пример #9
0
 public void Visit(Wheel wheel)
 {
     Console.WriteLine("test wheel #" +
                       wheel.GetNumber());
 }