Pattern Discussions


Factory Method: The factory method promotes loosely coupled code by ensuring that it is the only place where "new" is called. If new were called outside of a factory method, it creatures coupling between the class that called new and the instantiated class.

Composite

Singleton