© Vaskaran Sarcar 2020
V. SarcarDesign Patterns in C#https://doi.org/10.1007/978-1-4842-6062-3_9

9. Facade Pattern

Vaskaran Sarcar1 
(1)
Garia, Kolkata, West Bengal, India
 

This chapter covers the Facade pattern.

GoF Definition

Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.

Concept

This pattern supports loose coupling. Using this pattern, you can emphasize on the abstraction and hide the complex details by exposing a simple interface.

Consider a simple case. Let’s say that in an application, there are multiple classes, and each of them consists of multiple methods. A client can make a product using a combination of methods from these classes, but he needs ...

Get Design Patterns in C#: A Hands-on Guide with Real-world Examples now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.