static void Main(string[] args) { IWindow baseWindow = new BaseWindow(); IWindow threeD = new ThreeDLighting(baseWindow); IWindow shadow = new Shadowing(threeD); //Console.WriteLine(shadow.GetDetails()); IWindow colrfulShadowingThreeDPartialMirroFlashingBase = new ColorfulFrame(new Shadowing(new ThreeDLighting(new PartialMirroring(new BackgroundFlashing(new BaseWindow()))))); Console.WriteLine(colrfulShadowingThreeDPartialMirroFlashingBase.GetDetails()); }
static void Main(string[] args) { IWindow window = new BaseWindow(); Console.WriteLine(new Shadow(window).GetDetails()); //IWindow windowWithTomato = new TomatoTopping(window); //IWindow windowWithTomatoAndPineapple = new PineaappleTopping(windowWithTomato); //Console.WriteLine(windowWithTomatoAndPineapple.GetDetails()); //Console.WriteLine(windowWithTomatoAndPineapple.GetPrice()); //IWindow myfavoritewindow = new HalfPriceTopping(new TomatoTopping(new CheeseTopping(new Basewindow()))); //Console.WriteLine(myfavoritewindow.GetPrice()); }