Lab 4: Instructor's Notes


In this exercise, students build a separately compiled class containing metric conversion methods (simple, but useful).

Using a user-defined, separately compiled module with a program can change translation to a multistep process:

  1. Compile module classes.
  2. Compile the client code.

To organize a program which has separate components is the role of the Project or Make file.

We provide "starter" files in the exercise for each of the components in the lab exercise: Driver.java, Metric.java and Metric.doc.


Back to the Lab Table of Contents

Forward to the Prelab Questions


Back to the Table of Contents

Back to the Introduction


Copyright 2000 by Prentice Hall. All rights reserved.