Understanding Java   Chapters  01  02  03  04  05  06  07  08  09  10  11  12  13  14  15  16  17  18  19  20  21

Understanding Java: Chapter 11

These pages contain links to the programs that are developed in Chapter 11. The title of this chapter is: Using interfaces and classes to produce new types.
Date.javaStage A: a simple version of class Date that is used by NoelProg
NoelProg.javaStage A: This program uses the simple version of the class Date
11A.zipStage A: A zip file containing the above two files
Date.javaStage B: adding a constructor and a method declaration to Date
NoelProg.javaStage B: This program uses the class Date that has a constructor
11B.zipStage B: A zip file containing the above two files
Date.javaStage C: providing access methods and the toString method
NoelProg.javaStage C: NoelProg modified to use access methods and toString
11C.zipStage C: A zip file containing the above two files
Date.javaStage D: adding a class variable and class methods to Date
NoelProg.javaStage D: using Date's class method in NoelProg
11D.zipStage D: A zip file containing the above two files
Date.javaStage E: adding other constructors and an equals method to Date
NoelProg.javaStage E: NoelProg modified to use other constructors and equals
11E.zipStage E: A zip file containing the above two files
Date.javaStage F: the Date class modified so that it will work with collections
NoelProg.javaStage F: the NoelProg program
11F.zipStage F: A zip file containing the above two files
Date.javaStage G: the Date interface
DateImpl.javaStage G: the DateImpl class implements the Date interface
NoelProg.javaStage G: using Date and DateImpl in the NoelProg program
11G.zipStage G: A zip file containing the above three files
DateImplY.javaStage G: the DateImplY class also implements the Date interface
11H.zipStage G: A zip file containing Date, DateImplY and NoelProg


 1998-2002 Barry Cornelius
Any queries about this page should be sent to barry.cornelius@oucs.ox.ac.uk.
This page was last updated on 1 April 2001.