The 'Implementor' abstract class
Esempio n. 1
0
 public Abstraction()
 {
     this.implementor = Implementation.GetImplementation();
 }
 public RefinedAbstraction(Implementor implementor)
     : base(implementor)
 {
 }
Esempio n. 3
0
 public ConcreteAbstraction(Implementor implementor) : base(implementor)
 {
 }
Esempio n. 4
0
 public override void Operation() => Implementor.Method();
Esempio n. 5
0
 public Abstraction(Implementor imp) => this.imp = imp;
Esempio n. 6
0
 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;
        }
Esempio n. 9
0
 public Abstraction(Implementor imp)
 {
     implementor = imp;
 }
Esempio n. 10
0
 public RefinedAbstractionY(Implementor implementor) : base(implementor)
 {
     Debug.Log(" RefinedAbstractionY ");
 }
Esempio n. 11
0
 public Abstraction(Implementor implementor)
 {
     this.implementor = implementor;
 }