A simple implementation of fractions in Java and C++.

Details

Status Production/Stable
Language Java, C++
License 3-clause BSD
Role Maintainer

Versions: Java, C++.

A simple implementation of fractions, used to learn OOP in Java and C++.

The Fraction class supports:

The Fraction class currently does not support:

The Fraction class was written in Java first and then rewritten in C++. It was a learning exercise to understand how to write object-oriented code in those two languages.

The class is documented in Javadoc and Doxygen (but the docs are not shipped as of now).