示例#1
0
        static void Main(string[] args)
        {
            var civilEngineer = new CivilEngineer(new TipiHouseBuilder());

            civilEngineer.ConstructHouse();
            Console.WriteLine(civilEngineer.GetHouse()._structure);
            Console.ReadLine();
        }
示例#2
0
        static void Main(string[] args)
        {
            Igloo         igloo         = new Igloo();
            CivilEngineer civilEngineer = new CivilEngineer(igloo);

            civilEngineer.constructHouse();
            House house = new House();

            Console.WriteLine("Builder Constructed {0} ", house.GetHashCode());
        }