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     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.3.0