Back to list
Views:   6.9K
Replies:  1

Call Different Count Methods on Builder Pattern

Hi ,
 In  dofactory pattern examples which name is builder pattern like below, i want to call methods like that.

   For example :
       MotorCycleBuilder  i want to call     vehicleBuilder.BuildFrame();  vehicleBuilder.BuildEngine();
       CarBuilder i want to call            vehicleBuilder.BuildFrame(); vehicleBuilder.BuildEngine();   vehicleBuilder.BuildWheels();
       ScooterBuilder i want to call      vehicleBuilder.BuildFrame(); vehicleBuilder.BuildEngine();  vehicleBuilder.BuildWheels(); vehicleBuilder.BuildDoors();   like these methods.

      Shortly i want to call different combinations  of these methods  on Builder Directors .How can i do or is there a pattern?

   class Shop


    // Builder uses a complex series of steps

    public void Construct(VehicleBuilder vehicleBuilder)









Best Regards.

Volkan Genç, Feb 07, 2012
Reply 1
:(  sorry for the silly question ,i found there has been TemplateMethodPattern , dont care it
Volkan Genç, Feb 07, 2012
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.