Do decorator and state patterns resemble any way?
0 posts in topic
Flat View  Flat View

Posted By:   kaushik_zadoo
Posted On:   Sunday, May 1, 2005 08:35 AM

Guys i m new to design patterns. As i studied them, i found that most of them seem to resemble each other in one sense or the other. Particularly the state and decorator patterns seem to resemble in a great way. State patterns change behaviour according to state whereas decorator patterns improve behaviour of an existing object. Cannot one pattern do the job for other and vice versa?

About | Sitemap | Contact