Ejemplo n.º 1
0
        //Facade Design Pattern Method
        private static void FacadePatternDemo()
        {
            BikeFacade facade = new BikeFacade();

            //calling a method inside the method
            //calling a constructor
            facade.PrepareForSale(new Downhill(BikeColor.Red, new WideWheel(20)));
        }
Ejemplo n.º 2
0
        /* Facade Design Pattern Method */
        private static void FacadePatternDemo()
        {
            BikeFacade facade = new BikeFacade();    // an Object Instance

            facade.PrepareForSale(new Downhill(BikeColor.Red, new WideWheel(20)));
        }
Ejemplo n.º 3
0
        static void FacadeDemo()
        {
            BikeFacade facade = new BikeFacade();

            facade.PrepareForSale(new DownHill(new WideWheel(20), BikeColor.Red));
        }
Ejemplo n.º 4
0
        /* Facade Design Pattern Method */
        private static void FacadePatternDemo()
        {
            BikeFacade facade = new BikeFacade();

            facade.PrepareForSale(new Downhill(BikeColor.Gold, new WideWheel(28)));
        }