Class infixModel.AddOp
- public class AddOp
- extends Object
- implements infixModel.IBinOp
Represents the addition operation
Copyright (C) 2004 Dung X. Nguyen. All rights Reserved.

Singleton

AddOp
()

compute
(double, double)
- Peform n1 + n2, and return the result

Singleton
public static final AddOp Singleton = new AddOp()

AddOp
private AddOp()

compute
public double compute(double n1, double n2)
- Peform n1 + n2, and return the result.
- Parameters:
- n1 - A floating point number
- n2 - A floating point number
- Returns:
- The sum of n1 and n2