The two patterns' uml shotted from book Design Patterns Elements of Resuable Object-Oriented Software are listed below:
Proxy pattern uml :
Decorator pattern uml:
my question is why does proxy pattern use the realSubject class instead of composing the Subject interface just like the decorator pattern does.
Aucun commentaire:
Enregistrer un commentaire