What Is Facade with Example
Another Good Example Can Be the Startup of a Computer. When a Computer Starts Up, It Involves the Work of Cpu, Memory, Hard Drive, Etc. to Make It Easy to Use...
Another good example can be the startup of a computer. When a computer starts up, it involves the work of cpu, memory, hard drive, etc. To make it easy to use for users, we can add a facade which wrap the complexity of the task, and provide one simple interface instead.
What is the facade design pattern and what is the intent of using this pattern?
The Gang of Four says that the intent of the Facade pattern is to “provide a unified interface to a set of interfaces in a sub- system. Facade defines a higher-level interface that makes the subsystem easier to use.”
Must Read
What is facade design in architecture?
A façade refers to one side, usually the front, of a building. It is an integral piece to the overall design of a building. It provides the opportunity to create a personality and character to a building. … A curtain wall is a type of façade that has no structural impact.