예제 #1
0
        static void Main(string[] args)
        {
            Director director = new Director();
            IBuilder b1       = new FatPersonBuilder();
            IBuilder b2       = new ThinPersonBuilder();

            director.Construct(b1);
            director.Construct(b2);
            Product p1 = b1.GetResult();

            p1.Show();
            b2.GetResult().Show();
            Console.ReadKey();
        }