Case Study: The Rational class

The text discusses the design and implementation of a Rational class in Chapters 8.1-8.4.

We are considering a Rational class in the spirit of the one defined in the book. However for ease of exploration, we start by looking at a slightly simplified version of the code. For this reason, we provided a handout which contained a copy of our simplified version of the code.. We provide links to those three files here, for those who wish to get copies:


Last modified: Wednesday, 30 March 2005