static Example Create(AbstractFactory factory) { Example example = new Example(); example.product1 = factory.CreateProduct1(10); example.product2 = factory.CreateProduct2(20f); example.product3 = factory.CreateProduct3("thirty"); return example; }
static Example Create(AbstractFactory factory) { Example example = new Example(); example.product1 = factory.CreateProduct1(10); example.product2 = factory.CreateProduct2(20f); example.product3 = factory.CreateProduct3("thirty"); return example; }