Monday, December 19, 2011

PHP OOP Simple Factory



The Simple Factory isn't an actual pattern, but a way of doing things. This will help you see how we can apply a real Factory pattern in the upcoming tutorials. All factories have to do with object creation by delegating the responsibilities to the appropriate classes.. In OOP terms hopefully without scaring you away, we are "Encapsulating what varies", and "Leaving the object open for extension and closed for modification".
Source: http://jream.com/lab/open-source

No comments:

Post a Comment

About

Blogger templates