Exemplo n.º 1
0
        public static void Main()
        {
            GraphicEditor graphicEditor = new GraphicEditor();
            IShape        shape         = new Rectangle();

            graphicEditor.DrawShape(shape);
        }
Exemplo n.º 2
0
        public static void Main()
        {
            var circle = new Circle();
            var square = new Square();

            var editor = new GraphicEditor();

            editor.DrawShape(circle);
            editor.DrawShape(square);
        }