Chapter 5. Abstract Factory
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 ...
Get Pro Objective-C Design Patterns for iOS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.