示例#1
0
 public double CalculateArea(Shape shape) => shape.GetArea();
 public void PrintShapeArea(Shape shape)
 {
     Console.WriteLine("Area is: {0}", shape.GetArea());
 }