Skip to main content

Strategy Patterns (Or, Policy Patterns)

  • Chapter
Java Design Patterns
  • 5765 Accesses

Abstract

GoF Definition: Define a family of algorithms, encapsulate each one, and make them interchangeable. The strategy pattern lets the algorithm vary independently from client to client.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Electronic Supplementary Material

Below is the link to the electronic supplementary material.

CH 07 (zip 351 kb)

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Vaskaran Sarcar

About this chapter

Cite this chapter

Sarcar, V. (2016). Strategy Patterns (Or, Policy Patterns). In: Java Design Patterns. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1802-0_7

Download citation

Publish with us

Policies and ethics