design patterns - Maze examples

Y

yb

Hi,

I just started reading design patterns and looking at the Lexi example.
I'm very new to this so please bear with me.

I understand the Decorator pattern, but a bit confused by the Maze
example used for creational patterns. Is this example a bit contrived?
I would have thought a decorator pattern would make more sense instead
of deriving mazes with different attributes.

Anyway, just seemed to me the example is not good practice but just
made to illustrate the point on how to apply creational patterns??
hope my question makes sense.
 
V

Victor Bazarov

yb said:
I just started reading design patterns and looking at the Lexi example.
I'm very new to this so please bear with me.

I understand the Decorator pattern, but a bit confused by the Maze
example used for creational patterns. Is this example a bit contrived?
I would have thought a decorator pattern would make more sense instead
of deriving mazes with different attributes.

Anyway, just seemed to me the example is not good practice but just
made to illustrate the point on how to apply creational patterns??
hope my question makes sense.

Is there a C++ _language_ question here somewhere? Please consider
'comp.software.patterns' for your general patterns questions.
 
R

roberts.noah

Victor said:
Is there a C++ _language_ question here somewhere? Please consider
'comp.software.patterns' for your general patterns questions.

There is also a general OO group somewhere but I forget its name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top