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