static void MakeShapeHollow(Shape s)
 {
     if (s.Area() > s.Perimeter())
     {
         s.MakeHollow();
     }
 }
Esempio n. 2
0
 private static void Calculate(Shape shape)
 {
     shape.Area();
     shape.Perimeter();
     Console.WriteLine();
 }