Lab 6: Instructor's Notes
This exercise leads students through the creation of a
Fraction class by which fraction objects can be represented.
The exercise consists of two parts:
- Part 1 builds the basic Fraction class, using only
methods. The required files are Pierre1.java,
Students will work on constructors, accessors, mutators, and
multiplication methods. As usual, your students will need to
create a project.
- Part 2 extends part 1, by considering what methods need to be
created to support basic output in Java. Your students should
create a separate project in their workspaces to handle the
compilation and linking of Pierre2.java
and the Fraction module files.
As usual, we will also work with the ann
Back to the Lab Table of Contents
Forward to the Prelab
Back to the Table of Contents
Back to the Introduction
Copyright 2000 by Prentice
Hall. All rights reserved.