DrawShape() public method

public DrawShape ( IShape shape ) : void
shape IShape
return void
Ejemplo n.º 1
0
        public static void Main()
        {
            var circle = new Circle();
            var square = new Square();

            var editor = new GraphicEditor();

            editor.DrawShape(circle);
            editor.DrawShape(square);
        }
Ejemplo n.º 2
0
        public static void Main()
        {
            GraphicEditor graphicEditor = new GraphicEditor();
            IShape        shape         = new Rectangle();

            graphicEditor.DrawShape(shape);
        }