Design patterns have evolved to solve problems often encountered in software applications. The factory method design pattern and the abstract factory design pattern are both creational patterns.
The first design pattern I ever used was the Factory Method pattern. By adopting that pattern, I moved the code for creating my objects out of my constructors and into a separate method. That ...
To help the client get the right process class, you might consider implementing the Factory Method pattern. You may recognize this pattern if you ever created a desktop application: My various On* ...