23.07.2012 Views

Design Patterns Explained

Design Patterns Explained

Design Patterns Explained

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

284 Part V • Handling Variations with <strong>Design</strong> <strong>Patterns</strong><br />

Summary<br />

In this chapter Sometimes, I have a set of procedures that I must follow. The proce-<br />

dures are common at a high level, but implementing some of the<br />

steps can vary. For example, querying a SQL database is fairly routine<br />

at a high level, but some of the details— say, how to connect to<br />

the database— can vary based on details such as the platform.<br />

The Template Method allows me to define the sequence of steps<br />

and then override those steps that need to change.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!