<<< Difference between Builder and Factory Pattern | Index | Prototype >>> |
Problem to solve: client wants to create objects without specifying subclass types.
Sample program FactoryMethod.cpp ( download ) illustrates the Factory Method design for instantiation of the family of derived objects:
|
|
<<< Difference between Builder and Factory Pattern | Index | Prototype >>> |