September 2002
Intermediate to advanced
608 pages
14h 20m
English
The Standings class includes both application logic and presentation logic, so it will be split into two parts. The part containing the application logic will continue to be called Standings, while the presentation logic will be placed into a class called Console, since that is the device it currently supports for output.
The Standings class is separated out into interface and implementation just as with all the previous classes. Listing 3.15 shows the Standings interface.
// Standings.java package nfl.application; import java.util.List; import nfl.ObjectFactory; /* Calculates and prints standings for all NFL conferences * and divisions */ public interface ... |
Read now
Unlock full access