public void Visit(Cylinder cylinder) { SurfaceArea = 2 * Math.PI * cylinder.Radius * (cylinder.Radius + cylinder.Height); }
public void Visit(Cylinder c) { Dimensions = new Dimensions(c.Radius * 2, c.Height); }
public void Visit(Cylinder cylinder) { Dimensions = new Dimensions(2 * cylinder.Radius, cylinder.Height); }
public void Visit(Cylinder c) { SurfaceArea = 2 * Math.PI * c.Radius * (c.Radius + c.Height); }