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.java | Stage A: a simple version of class Date that is used by NoelProg |
NoelProg.java | Stage A: This program uses the simple version of the class Date |
11A.zip | Stage A: A zip file containing the above two files |
Date.java | Stage B: adding a constructor and a method declaration to Date |
NoelProg.java | Stage B: This program uses the class Date that has a constructor |
11B.zip | Stage B: A zip file containing the above two files |
Date.java | Stage C: providing access methods and the toString method |
NoelProg.java | Stage C: NoelProg modified to use access methods and toString |
11C.zip | Stage C: A zip file containing the above two files |
Date.java | Stage D: adding a class variable and class methods to Date |
NoelProg.java | Stage D: using Date 's class method in NoelProg |
11D.zip | Stage D: A zip file containing the above two files |
Date.java | Stage E: adding other constructors and an equals method to Date |
NoelProg.java | Stage E: NoelProg modified to use other constructors and equals |
11E.zip | Stage E: A zip file containing the above two files |
Date.java | Stage F: the Date class modified so that it will work with collections |
NoelProg.java | Stage F: the NoelProg program |
11F.zip | Stage F: A zip file containing the above two files |
Date.java | Stage G: the Date interface |
DateImpl.java | Stage G: the DateImpl class implements the Date interface |
NoelProg.java | Stage G: using Date and DateImpl in the NoelProg program |
11G.zip | Stage G: A zip file containing the above three files |
DateImplY.java | Stage G: the DateImplY class also implements the Date interface |
11H.zip | Stage G: A zip file containing Date , DateImplY and NoelProg |
barry.cornelius@oucs.ox.ac.uk
.