示例#1
0
文件: Sub.cs 项目: o-khytrov/Practice
 public Sub(ArithmeticUnit unit, int operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }
示例#2
0
        public Div(ArithmeticUnit unit, int operand)
        {
            this.unit = unit;
            this.operand = operand;

        }
示例#3
0
 public Sub(ArithmeticUnit aUnit, int operand)
 {
     this.operand = operand;
     this.aUnit   = aUnit;
 }
示例#4
0
 public Or(ArithmeticUnit arithmeticUnit, int operand)
 {
     this.arithmeticUnit = arithmeticUnit;
     this.operand        = operand;
 }
示例#5
0
 public Addition(ArithmeticUnit unit, int operand)
 {
     this.ArithmeticUnit = unit;
     this.Operand        = operand;
 }
示例#6
0
 public Calculator()
 {
     _arithmeticUnit = new ArithmeticUnit();
     _controlUnit    = new ControlUnit();
 }
示例#7
0
 public Substract(ArithmeticUnit unit, int operand)
 {
     this.ArithmeticUnit = unit;
     this.Operand        = operand;
 }
示例#8
0
 public Calculator()
 {
     _invoker  = new ControlUnit();
     _receiver = new ArithmeticUnit();
 }
示例#9
0
 public Add(ArithmeticUnit unit, double operand)
 {
     Unit    = unit;
     Operand = operand;
 }
示例#10
0
 public Multiply(ArithmeticUnit unit, double operand)
 {
     Unit    = unit;
     Operand = operand;
 }
示例#11
0
 public Div(ArithmeticUnit receiver, double operand)
     : base(receiver, operand)
 {
 }
示例#12
0
 public Command(ArithmeticUnit receiver, double operand)
 {
     _receiver = receiver;
     _operand  = operand;
 }
示例#13
0
 public Multiplication(ArithmeticUnit unit, int operand)
 {
     this.ArithmeticUnit = unit;
     this.Operand        = operand;
 }