Open cxlove opened 8 years ago
There is a problem in abstract factory part.
In pizza class, we need a ingredient factory to help us prepare corresponding material. So we can generate a factory in pizza store each time when we need create a new pizza and release it in pizza class. Also we can generate a factory when we create the pizza store, and always use this factory until we release the pizza store instance. Which is better.
RT