The Fixture is where the Magic Is

// Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the GNU General Public License version 2 or later.
package eg;

import fit.ColumnFixture;

public class Division extends ColumnFixture
{
  public double numerator;
  public double denominator;
  public double quotient() {
    return numerator/denominator;
  }
}

Compare to the Wiki markup

|eg.Division|
|numerator|denominator|quotient?|
|10       |2          |5        |
|12.6     |3          |4.2      |
|100      |4          |24       |

Previous | Next | Top | Cafe con Leche

Copyright 2006 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified September 4, 2006