// $Id: ExprProduct.java,v 1.1 2002/08/30 04:17:36 leavens Exp $
// Com S 362 homework

/** Expressions that are the product of two arguments, like 3*4. */
public class ExprProduct extends ExprSum {

    /** Initialize this expression tree. */
    public ExprProduct(ExprSum left, ExprSum right) {
        super(left, right);
    }

    /** Return the value of this expression. */
    public double value() {
        return left_arg.value() * right_arg.value();
    }

    /** Products don't support isLessThan. */
    public boolean isLessThan() {
        throw new UnsupportedOperationException();
    }
}
