Exemplo n.º 1
0
        void ShowRoomProject(IRoomFactory roomFactory)
        {
            Console.WriteLine();
            Console.WriteLine("Budujemy pokoj w stylu " + roomFactory.GetType().Name);
            Console.WriteLine("Pokoj będzię się składał z:");
            IChair chair = roomFactory.CreateChair();

            Console.WriteLine(chair.Show());
            ISofa sofa = roomFactory.CreateSofa();

            Console.WriteLine(sofa.Show());
            Console.WriteLine();
        }