コード例 #1
0
ファイル: Program.cs プロジェクト: sokolovmichel/Homework
        static void Main(string[] args)
        {
            Furniture myFurniture = new Furniture();
            IFactory  factory     = new FurnitureFactory.Wicker.WickerFactory();

            myFurniture.CreateFurniture(factory);

            System.Console.WriteLine();

            factory = new FurnitureFactory.Office.OfficeFactory();
            myFurniture.CreateFurniture(factory);



            //IFactory factory = new FurnitureFactory.Wicker.WickerFactory();
            //ITable table = factory.CreateTable();
        }