So I'm new to design patterns and I have seen different posts around SO and other places about combining design patterns. Is it possible to combine the Composite and Decorator Design pattern? I know that the two are very similar.
I am curious if you could just make the composite class, being implemented from the shared interface that all elements share, also be the decorator that the concrete decorators would extend from. I haven't found anyone who combines these two this way. Am I missing something?
UML References:
Aucun commentaire:
Enregistrer un commentaire