static void Main(string[] args) { //constructors Interface1 Interface1 = new Interface1(); Interface2 Interface2 = new Interface2(); Facade facade = new Facade(Interface1, Interface2); Client.ClientCode(facade); //uses facade Console.ReadLine(); //prevents console from closing }
public Facade(Interface1 Interface1, Interface2 Interface2) { this._Interface1 = Interface1; this._Interface2 = Interface2; }