Esempio n. 1
0
 public void ConstructCar()
 {
     _carBuilder.CreateNewCar();
     _carBuilder.BuildDoors();
     _carBuilder.BuildRows();
     _carBuilder.BuildSeats();
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            CarBuilder carBuilder = new CarBuilder(new BMW520Car());

            carBuilder.BuildFrame();
            carBuilder.BuildEngine();
            carBuilder.BuildDoors();
            carBuilder.BuildWheels();
            carBuilder.Show();
        }