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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-3331-2_5
Publisher Name: Apress
Print ISBN: 978-1-4302-3330-5
Online ISBN: 978-1-4302-3331-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)