private int ConvertTo(Unit toUnit) { return unit.ConvertTo(value, toUnit); }
public int ConvertTo(int value, Unit unit) { return value*numberOfBaseUnits/unit.numberOfBaseUnits; }
private Quantity(int value, Unit unit) { this.value = value; this.unit = unit; }
public bool ComparableWith(Unit unit) { return unitType.Equals(unit.unitType); }