From the course: Java Design Patterns: Structural

Unlock the full course today

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

Understand the Façade pattern

Understand the Façade pattern - Java Tutorial

From the course: Java Design Patterns: Structural

Start my 1-month free trial

Understand the Façade pattern

- [Presenter] Sometimes you'll have an app. That's has lots of complex functionality and you want to hide that complexity behind an interface, so it's easier to use. A real world example of a facade is a plug socket. Behind a plug socket there are wires and connections that most people don't understand. But on top of this is the plug socket that you see, and everyone knows how to use. The plug socket, in this case, is the facade. You only need to know that you can plug things into a plug socket and you don't need to know what's going on behind the scenes. Another classic real world example of this is an operating system on a computer or a phone or a tablet. When you click on a button to open up an app on your phone, you don't see all the work the operating system is doing in the background. All you see is that you clicked on the button and the app has opened on your screen. In a Java app you might have lots of classes…

Contents