public AnyShape() { List <Shape> shapes = new List <Shape>() { new Triangle(), new Circle() }; foreach (Shape shape in shapes) { Formulas.AddRange(shape.Formulas); } }