protected Shape(int x, int y, int radius, DrawAPI drawAPI) { this.x = x; this.y = y; this.radius = radius; this.drawAPI = drawAPI; }
public Circle(int x, int y, int radius, DrawAPI api) : base(api) { this.x = x; this.y = y; this.radius = radius; }
public static void BridgePatternDemo() { // complex drawing responsibility is left to DrawAPI DrawAPI drawAPI = new DrawAPI(); Patterns.StructuralPatterns.BridgePattern.Shape shape1 = new Patterns.StructuralPatterns.BridgePattern.Circle(drawAPI); shape1.drawCircle(); Patterns.StructuralPatterns.BridgePattern.Shape shape2 = new Patterns.StructuralPatterns.BridgePattern.Rectangle(drawAPI); shape2.drawRectangle(); }
public Circle(int x, int y, int radius, DrawAPI drawAPI) : base(drawAPI) { this.x = x; this.y = y; this.radius = radius; }
public Shape(DrawAPI api) { drawAPI = api; }
public Shape(DrawAPI drawAPI) { this.drawAPI = drawAPI; }
protected Shape(DrawAPI a) { api = a; }
protected DrawAPI drawAPI; //Cannot be accessed protected AbstractShape(DrawAPI drawAPI) //Cannot be accessed { this.drawAPI = drawAPI; }
public Shape(DrawAPI drawAPI) { _drawAPI = drawAPI; }
public Shape(DrawAPI a) { drawAPI = a; }
public override void Draw() { DrawAPI.drawCircle(radius, x, y); }
public Circle(int x, int y, int radius, DrawAPI drawAPI) : base(drawAPI) { _x = x; _y = y; _radius = radius; }
public FilledCircle(DrawAPI api) : base(api) { }
public Circle(int x, int y, int radius, DrawAPI drawAPI) : base(drawAPI) { // the drawAPI instance is protected by the abstract class DrawAPI this.x = x; this.y = y; this.radius = radius; }
protected Shape(DrawAPI drawAPI) { this.drawAPI = drawAPI; }
//private int x, y, radius; public Circle(int x, int y, int radius, DrawAPI drawAP) : base(x, y, radius, drawAP) { }
public EmptyCircle(DrawAPI api) : base(api) { }