O'Reilly logo

Java™ Design Patterns: A Tutorial by James W. Cooper

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

Part 3. Structural Patterns

A structural pattern describes how classes and objects can be combined to form larger structures. Class and object patterns differ in that a class pattern describes how inheritance can be used to provide more useful program interfaces. An object pattern describes how objects can be composed into larger structures using object composition or by including objects within other objects.

  • Adapter pattern. can be used to make one class interface match another for easier programming.

We'll also look at a number of other structural patterns where we combine objects to provide new functionality.

  • Composite pattern. creates an object (a composition of objects), each of which may be a simple or a composite object.

  • Proxy pattern. creates ...

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