In Factory pattern, we create object without exposing the creation logic to the client and refer to newly created object using a common interface.
In Factory pattern, we create object without exposing the creation logic to the client and refer to newly created object using a common interface.