The Result: A simple Fraction class

The simplest thing that could possibly work

public class Fraction {
    
    public Fraction(int numerator, int denominator) {
    }

    public Fraction add(Fraction fourth) {
        return null;
    }

    public boolean equals(Object o) {
        return true;
    }
    
}

Previous | Next | Top | Cafe con Leche

Copyright 2005-2007 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified October 4, 2006