KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmock > examples > calculator > expression > Multiplication


1 /* Copyright (c) 2000-2004 jMock.org
2  */

3 package org.jmock.examples.calculator.expression;
4
5 import org.jmock.examples.calculator.Expression;
6
7
8 public class Multiplication extends BinaryOperator
9 {
10
11     public Multiplication( Expression left, Expression right ) {
12         super(left, right);
13     }
14
15     protected double operator( double left, double right ) {
16         return left * right;
17     }
18 }
Popular Tags