CHAPTER 16 CASE STUDY
A LIBRARY APPLICATION (INHERITANCE)
The library application first appeared in Chapter 6. There, we showed how Lists and Maps can be combined to produce data structures to manage the bookkeeping required by a library. In that chapter, the data maintained in these collections were simple strings. In Chapter 11, we enhanced the capabilities of the system by making use of procedural code and closures. A text-based menu was introduced to support user interaction. Later, in Chapter 13, we used objects with more interesting state information and behaviors to represent the library, its borrowers, and books. We also removed any input/output responsibilities from them and introduced another class for this purpose.
In the first ...
Get Groovy Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.