APIDesignPatterns:Factory moved to Factory
←Older revision | Revision as of 12:36, 15 November 2008 |
APIDesignPatterns:Factory moved to Factory
←Older revision | Revision as of 12:36, 15 November 2008 |
←Older revision | Revision as of 12:26, 15 November 2008 | ||
Line 10: | Line 10: | ||
All these details can be implemented and are hidden to some extent from the user of the [[API]]. It is impossible to achieve this with plain constructor. | All these details can be implemented and are hidden to some extent from the user of the [[API]]. It is impossible to achieve this with plain constructor. | ||
- | [[Category: | + | [[Category:APIDesignPatterns]] |
- | [[Category: | + | [[Category:APIDesignPatterns:Creational]] |
- | [[Category: | + | [[Category:APIDesignPatterns:Encapsulation]] |
New page: Factory method is well know design pattern useful in API design too. In general, instead of making constructor of some class public, you can reveal a public static method that returns ...
New page