Design Pattern 3: Factory Pattern The factory design pattern also falls under the Creational design patterns same as the Singleton pattern. But the scope is different. Ins singleton our scope was the object. Here we focus more on the class. Lets dig deep into this design pattern. What is Factory Pattern? In earlier we talked about the Singleton Pattern where a single object is created and is used throughout the life span of the program. This time its quite different. In Factory pattern what happens is that the user doesn't get to know the actual implementation of the system instead of that all the created objects are referred via an common interface. When I mentioned hiding the implementation you might get some familiar vibe. Yes the concept of polymorphism might have crossed your mind. Actually for the implementation of the Factory design pattern we are using interfaces. Other thing is you might wonder what I ment...