Overview

This chapter continues the e-tailing case study introduced in Chapter 14, “The Strategy Pattern.”

In this chapter,

  • I describe a new requirement for the case study: Add header and footer information to the printed sales ticket.

  • I show how the Decorator pattern handles the requirement flexibly.

  • I discuss how the Decorator pattern can be used to handle input/output (especially Java I/O).

  • I describe the key features of the Decorator pattern.

  • I describe some of my experience using the Decorator pattern in practice.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset