public void Visit(Cuboid c)
 {
     // Standart feature {0}, name
     Console.WriteLine("Hey Im the Cuboid, name: {0}, lenght: {1}, heigth: {2}, size: {3}.", c.name, c.length, c.height, c.size);
 }
 void Visit(Cuboid c);
 public void Visit(Cuboid c)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public override void Visit(Cuboid c)
 {
     // TODO
 }
Пример #5
0
 public override void Visit(Cuboid c)
 {
     Console.WriteLine("I am a Cuboid " + c.Length + ", " + c.Width + ", " + c.Depth);
 }
Пример #6
0
 public virtual void Visit(Cuboid c)
 {
 }