public void BuildDoors()
 {
     _house.Add("Stylish door");
 }
Ejemplo n.º 2
0
 public override void BuildBasement()
 {
     house.Add(new Basement());
 }
Ejemplo n.º 3
0
 // All production steps work with the same product instance.
 public void BuildWalls()
 {
     _house.Add("4 Walls");
 }
Ejemplo n.º 4
0
 public void Ceiling()
 {
     _house.Add("Ceiling");
 }
Ejemplo n.º 5
0
        private House _house = new House(); //can be a house or object of other kind which has similar steps as building a house

        public void BuildDoors()
        {
            _house.Add("Wood doors");
        }