As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [factory-method]

Use this tag for code reviews of, or involving methods that create a new instance of a given type, often with parameters that determine how the instance gets created.

Filter by
Sorted by
Tagged with
4 votes
1 answer

Are there side-effects to having a generic Ninject factory?

Consider this class: ...
Mathieu Guindon's user avatar
6 votes
2 answers

Is this a correct way to use Factory Pattern?

I have an abstract class which implements the IDataCreator interface: ...
sk2212's user avatar
  • 185
9 votes
2 answers

Is this a good implementation of the Factory Pattern?

Suppose I have this code: ...
user avatar
7 votes
1 answer

Factory design for math problems

I'm creating a factory design for math problems. The idea which I have is: When the factory initializes, creates in a list some problems (20 initially) If the program wants more than 20, the list ...
10 votes
3 answers

Is this correct factory method pattern?

I know that there are many similar questions, but I don't understand most of those questions because I'm not sure if I know what a factory method pattern is. So, after reading many examples over the ...
Moon's user avatar
  • 378

1 2 3