예제 #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));
 }