Design Pattern-Factory Pattern

Here i would like to Explain one of Gang of Four Design patterns Factory Pattern which is a solution to common problems that occurred in Software Designing which falls under the Creation Design patterns.

Design patterns are general reusable solutions to common problems that occurred in software designing. There are broadly 3 categories of design patterns, i.e., Creational, Behavioral and Structural.

Factory Design Pattern falls under the category of creational design pattern.It deals with the problem of creating objects (products) without specifying the exact class of object that will be created.