DrawShape() публичный Метод

public DrawShape ( IShape shape ) : void
shape IShape
Результат void
Пример #1
0
        public static void Main()
        {
            var circle = new Circle();
            var square = new Square();

            var editor = new GraphicEditor();

            editor.DrawShape(circle);
            editor.DrawShape(square);
        }
Пример #2
0
        public static void Main()
        {
            GraphicEditor graphicEditor = new GraphicEditor();
            IShape        shape         = new Rectangle();

            graphicEditor.DrawShape(shape);
        }