Пример #1
0
        static void Main(string[] args)
        {
            ComplexClassA classA = new ComplexClassA();
            ComplexClassB classB = new ComplexClassB();

            Facade facade = new Facade(classA, classB);

            Client.ClientCode(facade);

            Console.WriteLine("Hello World!");
        }
Пример #2
0
 public Facade(ComplexClassA complexClassA, ComplexClassB complexClassB)
 {
     _complexClassA = complexClassA;
     _complexClassB = complexClassB;
 }