Views: 6.9K
Replies: 1
Archived
|
Call Different Count Methods on Builder PatternHi ,
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) { vehicleBuilder.BuildFrame(); vehicleBuilder.BuildEngine(); vehicleBuilder.BuildWheels(); vehicleBuilder.BuildDoors(); } } thanks. 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
|