public static void Main() { var circle = new Circle(); var square = new Square(); var editor = new GraphicEditor(); editor.DrawShape(circle); editor.DrawShape(square); }
public static void Main() { GraphicEditor graphicEditor = new GraphicEditor(); IShape shape = new Rectangle(); graphicEditor.DrawShape(shape); }