Class infixModel.AddOp


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


Variable Index

 o Singleton

Constructor Index

 o AddOp ()

Method Index

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

Variables

 o Singleton
public static final AddOp Singleton = new AddOp()

Constructors

 o AddOp
private  AddOp()

Methods

 o 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