public Abstraction() { this.implementor = Implementation.GetImplementation(); }
public RefinedAbstraction(Implementor implementor) : base(implementor) { }
public ConcreteAbstraction(Implementor implementor) : base(implementor) { }
public override void Operation() => Implementor.Method();
public Abstraction(Implementor imp) => this.imp = imp;
protected Abstraction(Implementor implementor) { this.implementor = implementor; }
public void SetImplementor(Implementor implementor) { this.implementor = implementor; }
protected Implementor impl; //定义实现类接口对象 public void SetImpl(Implementor impl) { this.impl = impl; }
public Abstraction(Implementor imp) { implementor = imp; }
public RefinedAbstractionY(Implementor implementor) : base(implementor) { Debug.Log(" RefinedAbstractionY "); }
public Abstraction(Implementor implementor) { this.implementor = implementor; }