Design Patterns - Factory Method
Design Patterns is an important subject to any developer and so you can expect a post about them every once in a while. The Factory Method is an object-oriented creational design pattern that deals with the problem of creating objects without having to specify the exact class of object that should be created. Let’s build a simple example to illustrate the concept. We’ll create a class that will deal with names....