public override double Operation()
 {
     if (RightArgument.Operation() != 0)
     {
         return(LeftArgument.Operation() / RightArgument.Operation());
     }
     else
     {
         throw new DivideByZeroException("Divizion by zero");
     }
 }
Beispiel #2
0
 public override double Operation()
 {
     return(LeftArgument.Operation() * RightArgument.Operation());
 }
Beispiel #3
0
 public override double Operation()
 {
     return(Math.Pow(LeftArgument.Operation(), RightArgument.Operation()));
 }