package lab.art; /** * A binary operator has an operation that takes two doubles * as arguments and returns a double. * * @author Franck van Breugel */ public abstract class BinaryOperator { /** * Initializes this binary operator. */ public BinaryOperator() { super(); } /** * Returns the result of applying this binary operator to the * given doubles. * * @param a a double. * @param b another double. * @return the result of applying this binary operator to the * given doubles. */ public abstract double operation(double a, double b); }