O'Reilly logo

Groovy Programming by John Savage, Kenneth Barclay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required