From the course: C# Design Patterns: Part 3 (2017)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Façade pattern explained

Façade pattern explained - C# Tutorial

From the course: C# Design Patterns: Part 3 (2017)

Start my 1-month free trial

Façade pattern explained

- [Instructor] The Gang of Four describes the facade pattern's intent is to provide a unified interface to a set of interfaces in a subsystem. It also mentions that the facade defines a higher-level interface that makes the subsystem easier to use. All they're saying is that it's used to hide complexities of a system and provides an interface to the client to do so. Let's take a look at the class diagram. Now, in the Gang of Four book, for some reason, this class diagram looks a little different than the others. It almost looks like it's half completed. But it's really because it's fairly straightforward. There's only two components to it. There's the facade at the very top and then there's the subsystems. All the other boxes that you see, those are considered subsystems. The facade itself will know which subsystem classes are responsible for a request. And the subsystems are responsible for implementing the functionality. Now to make sense of this, what we're going to do is pretend…

Contents