public double Radius { get; set; }
public double Width { get; set; }
public double Height { get; set; }
public class AreaCalculator
public double Area(object[] shapes)
foreach (var shape in shapes)
Rectangle rectangle = (Rectangle) shape;
area += rectangle.Width*rectangle.Height;
Circle circle = (Circle)shape;
area += circle.Radius * circle.Radius * Math.PI;
public static void Main()
Console.WriteLine("Hello World");