Esempio 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)));
        }
Esempio 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)));
        }
Esempio n. 3
0
        static void FacadeDemo()
        {
            BikeFacade facade = new BikeFacade();

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

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