Skip to content

Commit 94343d7

Browse files
committed
add facade pattern
1 parent 5787fdb commit 94343d7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Facade/Program.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,18 @@ class Program
66
{
77
static void Main(string[] args)
88
{
9-
//More info: https://en.wikipedia.org/wiki/Facade_pattern
9+
/*
10+
* More info: https://en.wikipedia.org/wiki/Facade_pattern
11+
What problems can the Facade design pattern solve?
12+
13+
To make a complex subsystem easier to use,
14+
a simple interface should be provided for a set of interfaces in the subsystem.
15+
The dependencies on a subsystem should be minimized.
16+
17+
Clients that access a complex subsystem directly refer to (depend on) many different objects
18+
having different interfaces (tight coupling),
19+
which makes the clients hard to implement, change, test, and reuse.
20+
*/
1021

1122
var facade = new CarFacade.CarFacade();
1223

0 commit comments

Comments
 (0)