---
title: "18-Facade"
author: "ccfangle"
date: "2012-01-15T15:22:17Z"
tags: []
categories: ["编程语言"]
slug: "18-facade"
draft: false
lastmod: "2012-01-15T15:24:01Z"
id: 1346764
url: "https://ccfangle.iteye.com/blog/1346764"
---

***Facade模式*** : 为子系统中的一组接口提供一个一致的界面.简言之，就是为凌乱、繁杂的接口(或者是类)构造一个统一的接口(或者是类),便于使用、很多时候达到了复用的目的。这在教材中的例子能够看出来，有一句是很好的总结：**A tax adviser is a Façade between you and the tax code, and a mediator between you and the tax system.**

    此外可以参考这个例子 [www.jdon.com/designpatterns/designpattern\_Facade.htm](http://www.jdon.com/designpatterns/designpattern_Facade.htm)

                                   [http://www.cnblogs.com/zhenyulu/articles/55992.html](http://www.cnblogs.com/zhenyulu/articles/55992.html)