Пример #1
0
 public Abstraction()
 {
     this.implementor = Implementation.GetImplementation();
 }
Пример #2
0
 public RefinedAbstraction(Implementor implementor)
     : base(implementor)
 {
 }
Пример #3
0
 public ConcreteAbstraction(Implementor implementor) : base(implementor)
 {
 }
Пример #4
0
 public override void Operation() => Implementor.Method();
Пример #5
0
 public Abstraction(Implementor imp) => this.imp = imp;
Пример #6
0
 protected Abstraction(Implementor implementor)
 {
     this.implementor = implementor;
 }
Пример #7
0
 public void SetImplementor(Implementor implementor)
 {
     this.implementor = implementor;
 }
Пример #8
0
        protected Implementor impl; //定义实现类接口对象

        public void SetImpl(Implementor impl)
        {
            this.impl = impl;
        }
Пример #9
0
 public Abstraction(Implementor imp)
 {
     implementor = imp;
 }
Пример #10
0
 public RefinedAbstractionY(Implementor implementor) : base(implementor)
 {
     Debug.Log(" RefinedAbstractionY ");
 }
Пример #11
0
 public Abstraction(Implementor implementor)
 {
     this.implementor = implementor;
 }