Tagged “Factory-Method”
2 articles with this tag.
- Factory MethodLet subclasses decide which class to instantiate. A runnable Java 21 report-export example, a clear distinction from the 'simple factory' and static factory methods, UML, trade-offs and interview questions.
- Factory Patterns ComparedSimple factory, static factory method, GoF Factory Method, Abstract Factory and Builder — what each one is, how they differ, and which to choose.