September 2002
Intermediate to advanced
608 pages
14h 20m
English
The next class to be transformed is the Team class. The first step in the transformation is to extract all of the public methods of the class and place them in an interface, which retains the name Team. The original Team source file is then renamed BasicTeamImpl.java; the Impl suffix will be used throughout our examples to indicate implementation classes. The Basic prefix indicates that this is the simple, standard “reference implementation,” if you will, of a Team object. While the interface allows us to create entirely separate implementations, it is expected that instead we will extend the BasicTeamImpl class and add or override methods to add new functionality. The Team interface is shown in Listings ...
Read now
Unlock full access