jump to navigation

Classifying patterns July 22, 2005

Posted by Coolguy in Software Design.
trackback

The authors divided these patterns into three types:

Creational,

Structural

Behavioral.

Creational patterns are ones that create objects for you, rather than

having you instantiate objects directly. This gives your program more flexibility in deciding which objects need to be created for a given case. This often involves isolating the details of object creation so your code isn’t dependent on what types of objects there are and thus doesn’t have to be changed when you add a new type of object. Singleton,Factory Method,Prototype are classified as a creational patterns

Structural patterns help you compose groups of objects into larger structures, such as complex user interfaces or accounting data. This invloves designing objects to satisfy particular project constraints. These work with the way objects are connected with other objects to ensure that changes in the system don’t require changes to those connections.

Behavioral patterns help you define the communication between objects in your system and how the flow is controlled in a complex program. These encapsulate processes that you want to perform, such as interpreting a language, fulfilling a request, moving through a sequence (as in an iterator), or implementing an algorithm.Observer and the Visitor patterns are common examples.

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: