Skip to main content
  • 1056 Accesses

Abstract

A lot of people love pizzas. The structure of a typical pizza is pretty much standard, even though it could be prepared in different pizzerias. A standard pizza has toppings, cheese, sauce, and dough. There are so many styles of pizzas out there. For example, New York-style and Chicago-style have different characteristics of ingredients; thin crust dough vs. thick crust dough, marinara vs. plum tomato sauce, and Reggiano vs. mozzarella cheese. Let’s say you go to a pizzeria. There are two pizza chefs who are from New York and Chicago respectively. They specialize in their own pizza styles. This time you order a New York-style pepperoni pizza. Then back in the kitchen, the chef from New York has started preparing ingredients for your order, like thin crust dough, marinara sauce, Reggiano cheese, and some pepperoni. The next time, you go to the same pizzeria and order the same pizza but in Chicago style. Then the chef from Chicago will prepare stuff, like thick crust dough, plum tomato sauce, mozzarella cheese, and pepperoni. Although you order the same type of pizza (pepperoni), the characteristics of the ingredients are somewhat different from style to style.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Carlo Chung

About this chapter

Cite this chapter

Chung, C. (2011). Abstract Factory. In: Pro Objective-C Design Patterns for iOS. Apress. https://doi.org/10.1007/978-1-4302-3331-2_5

Download citation

Publish with us

Policies and ethics