Exemplo n.º 1
0
 public double CalculateArea(Shape shape) => shape.GetArea();
Exemplo n.º 2
0
 public void PrintShapeArea(Shape shape)
 {
     Console.WriteLine("Area is: {0}", shape.GetArea());
 }