static void Main(string[] args) { var civilEngineer = new CivilEngineer(new TipiHouseBuilder()); civilEngineer.ConstructHouse(); Console.WriteLine(civilEngineer.GetHouse()._structure); Console.ReadLine(); }
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()); }