Ability Network interview question

Describe the factory pattern.