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

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

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