public void Run() { List <Shape> shapes = new() { new Circle(), new Rectangle() }; foreach (var shape in shapes) { PatternMatching.DisplayShape(shape); } }