/* * Copyright (C) 2016 PTM * * Object Oriented Programming Course Example File. * * Created: 22/01/2016 * Authors: Pasi Manninen */ using System.Collections.Generic; namespace T4 { /// /// This class collects all the Shapes to List collection. /// class Shapes { private List shapeList; public Shapes() { shapeList = new List(); } public List ShapeList { get { return shapeList; } } public void AddShape(Shape shape) { shapeList.Add(shape); } } }