View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Discussion 2: Vinny Ramachandran

Discussion 2



What are the differences between creational, structural, and behavioral patterns?

Behavioral patterns describe the interactions between the objects in the design. Structural patterns, on the other hand, are based solely on the architectural design of class diagrams. Creational patterns focus on the instantiation techniques of the design.

[http://www.informit.com/articles/article.asp?p=101616]
[http://www.dofactory.com/Patterns/Patterns.aspx]

Describe one design pattern or pattern language in your own words.

One design pattern I use often is the Factory pattern. Rather than creating instances of a class whenever necessary, calls are sent to the class's Factory. The Factory maintains a collection of existing instances, and if one is available, returns it; otherwise, a new one is created. This way, large objects with heavy initialization overhead do not have to be created when they are needed, then destroyed; instead, they are reused as necessary.

[http://www.dofactory.com/Patterns/Patterns.aspx]


Links to this Page