FileDocCategorySizeDatePackage
ComplexNumberFactoryImpl.javaAPI DocExample2624Thu Mar 16 11:52:38 GMT 2000None

ComplexNumberImpl

public class ComplexNumberImpl extends Object implements Serializable, ComplexNumber

Fields Summary
private double
real
private double
imaginary
Constructors Summary
Methods Summary
public doublegetImaginary()

        return imaginary;
    
public doublegetReal()

        return real;
    
public voidsetImaginary(double i)

        imaginary = i;
    
public voidsetReal(double r)

        real = r;
    
public java.lang.StringtoString()

        return real + " + " + imaginary + "i";