Exemplo n.º 1
0
        static void Build(IHouseFactory factory)
        {
            IFloor   floor   = factory.CreateFloor();
            IWall    wall    = factory.CreateWall();
            IDoor    door    = factory.CreateDoor();
            IWindow  window  = factory.CreateWindow();
            ICeiling ceiling = factory.CreateCeiling();

            floor.Display();
            wall.Display();
            door.Display();
            window.Display();
            ceiling.Display();
        }