All of the factory patterns "encapsulate" the instantiation of concrete classes and help to minimize (as well as localize) the dependencies your code has on those concrete classes. This articles explains what "breaking the last dependency" means, how it relates to the Factory pattern, and why you should care.
rating comment: Very detailed, step by step illustration of eliminating all dependencies on concrete classes in your code. With a lot of example code, used in this article, it's easy to understand the advantages of using the factory pattern.
No comments:
Post a Comment