Ray's playground

 

Abstract Factory(Chapter 5 of Pro Objective-C Design Patterns for iOS)

The Abstract Factory and Factory Method patterns are very similar in many ways. It’s very confusing to many people when to use which one of them. Both of them can be used for the same purposes of creating
objects without letting clients know what exact concrete objects are being returned. The following table is a side-by-side comparison between the Abstract Factory and the Factory Method patterns.

 

posted on 2012-03-27 11:22  Ray Z  阅读(293)  评论(0编辑  收藏  举报

导航