Пример #1
0
 public abstract BoolResult IsBigger(BoolResult second);
Пример #2
0
 public abstract BoolResult IsLess(BoolResult second);
Пример #3
0
 public abstract CalculationResult Multiply(BoolResult second);
Пример #4
0
 public abstract CalculationResult Divide(BoolResult second);
Пример #5
0
 public abstract CalculationResult Add(BoolResult second);
Пример #6
0
 public abstract CalculationResult Substract(BoolResult second);
Пример #7
0
 public override CalculationResult Substract(BoolResult second)
 {
     throw new Exception("Can`t substract Strings.");
 }
Пример #8
0
 public override CalculationResult Multiply(BoolResult second)
 {
     throw new Exception("Can`t multiply bools.");
 }
Пример #9
0
 public override CalculationResult Add(BoolResult second)
 {
     return(new StringResult(this.Value + second.Value));
 }
Пример #10
0
 public override CalculationResult Divide(BoolResult second)
 {
     throw new Exception("Can`t divide strings.");
 }
Пример #11
0
 public override CalculationResult Add(BoolResult second)
 {
     throw new Exception("Can`t add number and bool.");
 }
Пример #12
0
 public override BoolResult IsLess(BoolResult second)
 {
     return(new BoolResult(false));
 }
Пример #13
0
 public override BoolResult IsBigger(BoolResult second)
 {
     return(new BoolResult(true));
 }