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 11 CASE STUDY

A LIBRARY APPLICATION (METHODS, CLOSURES)

This chapter illustrates the power of Groovy methods and closures by constructing solutions to the small case study first introduced in Chapter 6. As before, we present a simple model of the loan data kept by a library. Our library maintains a record of the titles of the books in stock and the names of the borrowers who have been loaned one or more books.

As in the case study of Chapter 6, we develop the library application as a series of iterations. This lets us add functionality to the application in a controlled manner. It also ensures that we have a working (partial) solution as early as possible. The first iteration demonstrates that we can achieve the required functionality ...

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