O'Reilly logo

Program Development in Java: Abstraction, Specification, and Object-Oriented Design by John Guttag, Barbara Liskov

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

15 Design Patterns

When designing a program, it is useful to understand the ways that people have organized programs in the past, since these approaches might speed up the design process or lead to a better program in the end. This chapter discusses a number of such design patterns .1 Each pattern provides a benefit: some patterns improve performance, while others make it easier to change the program in certain ways.

In this book we have already used several design patterns. One is the iterator pattern. As explained in Chapter 6, we use iterators as a basic part of our methodology since it allows us to provide efficient access to elements of collection objects without either violating encapsulation or complicating the abstraction. Another is ...

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