jeudi 2 novembre 2017

Design Patterns - Understanding Facade Pattern

I'm new to Design Patterns and am trying to learn how they typically look like. Right now I'm trying to understand the Facade Pattern. I feel like the Facade Pattern is a rather broad concept, and so I was wondering if my second diagram would be considered a part of the Facade Template.

I know a typical Facade Pattern basically looks like this(with the A-class being the facade):

enter image description here

But what if we have a more subtle diagram like this:

enter image description here

Would the A-class still be considered a Facade-class or does it depend on the context?

Aucun commentaire:

Enregistrer un commentaire