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(); }
public override void Visit(Cuboid c) { // TODO }
public override void Visit(Cuboid c) { Console.WriteLine("I am a Cuboid " + c.Length + ", " + c.Width + ", " + c.Depth); }
public virtual void Visit(Cuboid c) { }