protected override Product FactoryMethod() { var concreteProductA = new ConcreteProductA(); //here you can add additional code for product A return(concreteProductA); }
public void Run() { ABuilder ab = new ABuilder(); ab .AddField1() .AddField2(); ConcreteProductA a = ab.Build(); }
public ABuilder() { this.p = new ConcreteProductA(); }