//LD_TEMPLATEMETHOD_000 public static void RunTemplateMethodBehavioralPattern() { AbstractCarBuilder c = new PorcheBuilder(); c.BuildCar(); c = new BeetleBuilder(); c.BuildCar(); }
private static void Main(string[] args) { CarBuilder c = new PorcheBuilder(); c.BuildCar(); c = new BeetleBuilder(); c.BuildCar(); Console.ReadKey(); }