示例#1
0
        static void Main(string[] args)
        {
            var woodBuilder = new WoodBuilder();

            woodBuilder.BuildFloor();
            woodBuilder.BuildWalls();
            woodBuilder.BuildRoof();
            woodBuilder.GetResult();

            var concreteBuilder = new ConcreteBuilder();

            concreteBuilder.BuildFloor();
            concreteBuilder.BuildWalls();
            concreteBuilder.BuildRoof();
            concreteBuilder.GetResult();
        }