September 2005
Intermediate to advanced
240 pages
6h 28m
English
The abstract data types are contained in the com.samscdrental.model.adt package:
CustomerID.java
PhysicalID.java
Timestamp.java
UPCCode.java
Dollar.java
Name.java
The ADTs have no dependencies to the model. They are reusable in a number of different programs. They represent common data types: CustomerID, PhysicalID, Timestamp, UPCCode, Dollar, and Name.
Each ADT has methods for converting to and from strings. Two ADTs have corresponding display classes, since they appear in GUI dialogs. These two are CustomerIDTextField and PhysicalIDTextField. If the other ADTs appear in future dialogs, equivalent widgets will be created.