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

Get Java™ Design Patterns: A Tutorial 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.